7#ifndef __HDI_CORE_STRING_PREF__
8#define __HDI_CORE_STRING_PREF__
55 StringPref(
const std::string& value_,
const std::string& name_ =
"");
109 typedef std::unique_ptr<StringPref> StringPrefUP;
110 typedef std::shared_ptr<StringPref> StringPrefSP;
111 typedef std::weak_ptr<StringPref> StringPrefWP;
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Allows for the storage of strings.
Definition: hdicoreStringPref.h:20
virtual bool setStringValue(const std::string &value_)
Sets the string value for this object.
StringPref()
Constructs an empty StringPref object.
StringPref(const std::string &value_, const std::string &name_="")
Constructs a StringPref object, with new data, to be added to a container at a later time.
virtual StringPref & operator=(const StringPref &rhs_)
Allows one StringPref object to be assigned from another.
virtual std::string stringValue() const
Gets the string value for this object.
StringPref(const StringPref &str_)
Constructs a new StringPref object from an existing StringPref object (copy constructor)
virtual StringPref * clone() const
Convenience method to clone an StringPref object on the heap.
virtual ~StringPref()
Destructs a StringPref object.
Header file for general preference data storage.