vfs: check userland buffers before reading them.
[haiku.git] / headers / private / debugger / value / values / StringValue.h
blobc47b52f2880b8b09309dd4390dd7d82e5c03d336
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
9 #include "Value.h"
12 class StringValue : public Value {
13 public:
14 StringValue(const char* value);
15 virtual ~StringValue();
17 BString GetValue() const
18 { return fValue; }
20 virtual bool ToString(BString& _string) const;
21 virtual bool ToVariant(BVariant& _value) const;
23 virtual bool operator==(const Value& other) const;
25 private:
26 BString fValue;
30 #endif // STRING_VALUE_H