Make UEFI boot-platform build again
[haiku.git] / headers / private / debugger / value / values / IntegerValue.h
blob1641cf92e121b6eeb612cb8914787adf7c95d3a0
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef INTEGER_VALUE_H
6 #define INTEGER_VALUE_H
9 #include "Value.h"
12 class IntegerValue : public Value {
13 public:
14 IntegerValue(const BVariant& value);
15 virtual ~IntegerValue();
17 bool IsSigned() const;
19 int64 ToInt64() const
20 { return fValue.ToInt64(); }
21 uint64 ToUInt64() const
22 { return fValue.ToUInt64(); }
23 const BVariant& GetValue() const
24 { return fValue; }
26 virtual bool ToString(BString& _string) const;
27 virtual bool ToVariant(BVariant& _value) const;
29 virtual bool operator==(const Value& other) const;
31 protected:
32 BVariant fValue;
36 #endif // INTEGER_VALUE_H