1*fce4895dSRene Gollent /* 2*fce4895dSRene Gollent * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3*fce4895dSRene Gollent * Distributed under the terms of the MIT License. 4*fce4895dSRene Gollent */ 5*fce4895dSRene Gollent #ifndef VALUE_H 6*fce4895dSRene Gollent #define VALUE_H 7*fce4895dSRene Gollent 8*fce4895dSRene Gollent 9*fce4895dSRene Gollent #include <String.h> 10*fce4895dSRene Gollent 11*fce4895dSRene Gollent #include <Variant.h> 12*fce4895dSRene Gollent 13*fce4895dSRene Gollent 14*fce4895dSRene Gollent class Value : public BReferenceable { 15*fce4895dSRene Gollent public: 16*fce4895dSRene Gollent virtual ~Value(); 17*fce4895dSRene Gollent 18*fce4895dSRene Gollent virtual bool ToString(BString& _string) const = 0; 19*fce4895dSRene Gollent virtual bool ToVariant(BVariant& _value) const = 0; 20*fce4895dSRene Gollent 21*fce4895dSRene Gollent virtual bool operator==(const Value& other) const = 0; 22*fce4895dSRene Gollent inline bool operator!=(const Value& other) const 23*fce4895dSRene Gollent { return !(*this == other); } 24*fce4895dSRene Gollent }; 25*fce4895dSRene Gollent 26*fce4895dSRene Gollent 27*fce4895dSRene Gollent #endif // VALUE_H 28