xref: /haiku/headers/private/debugger/value/value_nodes/EnumerationValueNode.h (revision fce4895d1884da5ae6fb299d23c735c598e690b1)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef ENUMERATION_VALUE_NODE_H
6 #define ENUMERATION_VALUE_NODE_H
7 
8 
9 #include "ValueNode.h"
10 
11 
12 class EnumerationType;
13 
14 
15 class EnumerationValueNode : public ChildlessValueNode {
16 public:
17 								EnumerationValueNode(ValueNodeChild* nodeChild,
18 									EnumerationType* type);
19 	virtual						~EnumerationValueNode();
20 
21 	virtual	Type*				GetType() const;
22 
23 	virtual	status_t			ResolvedLocationAndValue(
24 									ValueLoader* valueLoader,
25 									ValueLocation*& _location,
26 									Value*& _value);
27 
28 private:
29 			EnumerationType*	fType;
30 };
31 
32 
33 #endif	// ENUMERATION_VALUE_NODE_H
34