7#ifndef __HDI_CORE_BOOL_PREF__
8#define __HDI_CORE_BOOL_PREF__
54 BoolPref(
const bool value_,
const std::string& name_ =
"");
108 typedef std::unique_ptr<BoolPref> BoolPrefUP;
109 typedef std::shared_ptr<BoolPref> BoolPrefSP;
110 typedef std::weak_ptr<BoolPref> BoolPrefWP;
Allows for storage of bools.
Definition: hdicoreBoolPref.h:20
BoolPref(const bool value_, const std::string &name_="")
Constructs a BoolPref object, with new data, to be added to a container at a later time.
BoolPref()
Constructs an empty BoolPref object.
BoolPref(const BoolPref &b_)
Constructs a new BoolPref object from an existing BoolPref object (copy constructor)
virtual BoolPref * clone() const
Convenience method to clone an BoolPref object on the heap.
virtual BoolPref & operator=(const BoolPref &rhs_)
Allows one BoolPref object to be assigned from another.
virtual bool boolValue() const
Gets the bool value for this object.
virtual bool setBoolValue(const bool value_)
Sets the bool value for this object.
virtual ~BoolPref()
Destructs a BoolPref object.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Header file for general preference data storage.