Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
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 
12 namespace hdi
13 {
14  namespace core
15  {
19  class NumberPref : public PrefData
20  {
21  public:
32  NumberPref();
33 
41  NumberPref(const NumberPref& n_);
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::auto_ptr<NumberPref> NumberPrefAP;
141  }
142 }
143 
144 #endif
145 // __HDI_CORE_NUMBER_PREF__
virtual bool setIntValue(const int64_t value_)
Sets the integer value for this object.
NumberPref()
Constructs an empty NumberPref object.
virtual NumberPref * clone() const
Convenience method to clone an NumberPref object on the heap.
virtual int64_t intValue() const
Gets the integer value for this object.
virtual ~NumberPref()
Destructs a NumberPref object.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
virtual double floatValue() const
Gets the floating point value for this object.
Definition: hdicoreaiArray.h:12
Allows for the storage of numbers.
Definition: hdicoreNumberPref.h:19
Header file for general preference data storage.
virtual NumberPref & operator=(const NumberPref &rhs_)
Allows one NumberPref object to be assigned from another.
virtual bool setFloatValue(double value_)
Sets the floating point value for this object.