xref: /haiku/headers/private/debugger/value/values/EnumerationValue.h (revision 4bd0c1066b227cec4b79883bdef697c7a27f2e90)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef ENUMERATION_VALUE_H
6 #define ENUMERATION_VALUE_H
7 
8 
9 #include "IntegerValue.h"
10 
11 
12 class EnumerationType;
13 
14 
15 class EnumerationValue : public IntegerValue {
16 public:
17 								EnumerationValue(EnumerationType* type,
18 									const BVariant& value);
19 	virtual						~EnumerationValue();
20 
21 			EnumerationType*	GetType() const
22 									{ return fType; }
23 
24 	virtual	bool				ToString(BString& _string) const;
25 
26 private:
27 			EnumerationType*	fType;
28 };
29 
30 
31 #endif	// ENUMERATION_VALUE_H
32