xref: /haiku/headers/private/debugger/value/Value.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 VALUE_H
6 #define VALUE_H
7 
8 
9 #include <String.h>
10 
11 #include <Variant.h>
12 
13 
14 class Value : public BReferenceable {
15 public:
16 	virtual						~Value();
17 
18 	virtual	bool				ToString(BString& _string) const = 0;
19 	virtual	bool				ToVariant(BVariant& _value) const = 0;
20 
21 	virtual	bool				operator==(const Value& other) const = 0;
22 	inline	bool				operator!=(const Value& other) const
23 									{ return !(*this == other); }
24 };
25 
26 
27 #endif	// VALUE_H
28