7 #include "fwAtoms/registry/macros.hpp" 8 #include "fwAtoms/Boolean.hpp" 20 valueSptr->m_value = (value.compare(
"true") == 0);
29 valueSptr->m_value = value;
37 return m_value ?
"true" :
"false";
42 void Boolean::setString(
const std::string& value)
44 m_value = (!value.compare(
"true"));
fwAtoms contains basic objects to represent any other kind of object
virtual FWATOMS_API std::string getString() const override
Return the string representation of a value.
Represented a Boolean value.
static FWATOMS_API Boolean::sptr New(std::string value)
Construct an object storing a bool value.
virtual FWATOMS_API Base::sptr clone() const override
Returns a clone object.