mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 06:16:11 +01:00
31 lines
553 B
C
31 lines
553 B
C
|
/*
|
||
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*/
|
||
|
#ifndef BOOL_VALUE_H
|
||
|
#define BOOL_VALUE_H
|
||
|
|
||
|
|
||
|
#include "Value.h"
|
||
|
|
||
|
|
||
|
class BoolValue : public Value {
|
||
|
public:
|
||
|
BoolValue(bool value);
|
||
|
virtual ~BoolValue();
|
||
|
|
||
|
bool GetValue() const
|
||
|
{ return fValue; }
|
||
|
|
||
|
virtual bool ToString(BString& _string) const;
|
||
|
virtual bool ToVariant(BVariant& _value) const;
|
||
|
|
||
|
virtual bool operator==(const Value& other) const;
|
||
|
|
||
|
private:
|
||
|
bool fValue;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // BOOL_VALUE_H
|