1 /* 2 * Copyright 2010, Rene Gollent, rene@gollent.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef STRING_VALUE_H 6 #define STRING_VALUE_H 7 8 9 #include "Value.h" 10 11 12 class StringValue : public Value { 13 public: 14 StringValue(const char* value); 15 virtual ~StringValue(); 16 17 BString GetValue() const 18 { return fValue; } 19 20 virtual bool ToString(BString& _string) const; 21 virtual bool ToVariant(BVariant& _value) const; 22 23 virtual bool operator==(const Value& other) const; 24 25 private: 26 BString fValue; 27 }; 28 29 30 #endif // STRING_VALUE_H 31