7#ifndef __HDI_CORE_NUMBER_PREF__
8#define __HDI_CORE_NUMBER_PREF__
54 explicit NumberPref(
const int64_t value_,
const std::string& name_ =
"");
67 explicit NumberPref(
const double value_,
const std::string& name_ =
"");
140 typedef std::unique_ptr<NumberPref> NumberPrefUP;
141 typedef std::shared_ptr<NumberPref> NumberPrefSP;
142 typedef std::weak_ptr<NumberPref> NumberPrefWP;
Allows for the storage of numbers.
Definition: hdicoreNumberPref.h:20
virtual bool setIntValue(const int64_t value_)
Sets the integer value for this object.
virtual ~NumberPref()
Destructs a NumberPref object.
NumberPref(const double value_, const std::string &name_="")
Constructs a NumberPref object, with new data, to be added to a container at a later time.
virtual int64_t intValue() const
Gets the integer value for this object.
NumberPref(const NumberPref &n_)
Constructs a new NumberPref object from an existing NumberPref object (copy constructor)
NumberPref(const int64_t value_, const std::string &name_="")
Constructs a NumberPref object, with new data, to be added to a container at a later time.
NumberPref()
Constructs an empty NumberPref object.
virtual bool setFloatValue(double value_)
Sets the floating point value for this object.
virtual double floatValue() const
Gets the floating point value for this object.
virtual NumberPref & operator=(const NumberPref &rhs_)
Allows one NumberPref object to be assigned from another.
virtual NumberPref * clone() const
Convenience method to clone an NumberPref object on the heap.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Header file for general preference data storage.