Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreBoolPref.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_BOOL_PREF__
8 #define __HDI_CORE_BOOL_PREF__
9 
10 #include "hdicorePrefData.h"
11 
12 namespace hdi
13 {
14  namespace core
15  {
19  class BoolPref : public PrefData
20  {
21  public:
32  BoolPref();
33 
41  BoolPref(const BoolPref& b_);
42 
54  BoolPref(const bool value_, const std::string& name_ = "");
55 
61  virtual ~BoolPref();
62 
71  virtual BoolPref& operator=(const BoolPref& rhs_);
72 
86  virtual BoolPref* clone() const;
87 
95  virtual bool boolValue() const;
96 
105  virtual bool setBoolValue(const bool value_);
106  };
107 
108  typedef std::auto_ptr<BoolPref> BoolPrefAP;
109  }
110 }
111 
112 #endif
113 // __HDI_CORE_BOOL_PREF__
virtual bool setBoolValue(const bool value_)
Sets the bool value for this object.
BoolPref()
Constructs an empty BoolPref object.
virtual BoolPref & operator=(const BoolPref &rhs_)
Allows one BoolPref object to be assigned from another.
Allows for storage of bools.
Definition: hdicoreBoolPref.h:19
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
Definition: hdicoreaiArray.h:12
virtual ~BoolPref()
Destructs a BoolPref object.
Header file for general preference data storage.
virtual bool boolValue() const
Gets the bool value for this object.
virtual BoolPref * clone() const
Convenience method to clone an BoolPref object on the heap.