Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreNumberPref.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_NUMBER_PREF__
8#define __HDI_CORE_NUMBER_PREF__
9
10#include "hdicorePrefData.h"
11
12namespace hdi
13{
14 namespace core
15 {
19 class NumberPref : public PrefData
20 {
21 public:
33
42
54 explicit NumberPref(const int64_t value_, const std::string& name_ = "");
55
67 explicit NumberPref(const double value_, const std::string& name_ = "");
68
74 virtual ~NumberPref();
75
84 virtual NumberPref& operator=(const NumberPref& rhs_);
85
99 virtual NumberPref* clone() const;
100
108 virtual int64_t intValue() const;
109
118 virtual bool setIntValue(const int64_t value_);
119
127 virtual double floatValue() const;
128
137 virtual bool setFloatValue(double value_);
138 };
139
140 typedef std::unique_ptr<NumberPref> NumberPrefUP;
141 typedef std::shared_ptr<NumberPref> NumberPrefSP;
142 typedef std::weak_ptr<NumberPref> NumberPrefWP;
143 }
144}
145
146#endif
147// __HDI_CORE_NUMBER_PREF__
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.