1/*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef VARIABLE_VALUE_NODE_CHILD_H
6#define VARIABLE_VALUE_NODE_CHILD_H
7
8
9#include "ValueNode.h"
10
11
12class Variable;
13
14
15class VariableValueNodeChild : public ValueNodeChild {
16public:
17								VariableValueNodeChild(Variable* variable);
18	virtual						~VariableValueNodeChild();
19
20	virtual	const BString&		Name() const;
21	virtual	Type*				GetType() const;
22	virtual	ValueNode*			Parent() const;
23
24	Variable*					GetVariable() const { return fVariable; };
25
26	virtual	status_t			ResolveLocation(ValueLoader* valueLoader,
27									ValueLocation*& _location);
28
29private:
30			Variable*			fVariable;
31};
32
33
34#endif	// VARIABLE_VALUE_NODE_CHILD_H
35