2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
10 BoolValue::BoolValue(bool value
)
17 BoolValue::~BoolValue()
23 BoolValue::ToString(BString
& _string
) const
25 BString string
= fValue
? "true" : "false";
26 if (string
.Length() == 0)
35 BoolValue::ToVariant(BVariant
& _value
) const
43 BoolValue::operator==(const Value
& other
) const
45 const BoolValue
* otherBool
= dynamic_cast<const BoolValue
*>(&other
);
46 return otherBool
!= NULL
? fValue
== otherBool
->fValue
: false;