BoolValue.h revision fce4895d
1/*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef BOOL_VALUE_H
6#define BOOL_VALUE_H
7
8
9#include "Value.h"
10
11
12class BoolValue : public Value {
13public:
14								BoolValue(bool value);
15	virtual						~BoolValue();
16
17			bool				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
25private:
26			bool				fValue;
27};
28
29
30#endif	// BOOL_VALUE_H
31