Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
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
12namespace hdi
13{
14 namespace core
15 {
19 class BoolPref : public PrefData
20 {
21 public:
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::unique_ptr<BoolPref> BoolPrefUP;
109 typedef std::shared_ptr<BoolPref> BoolPrefSP;
110 typedef std::weak_ptr<BoolPref> BoolPrefWP;
111 }
112}
113
114#endif
115// __HDI_CORE_BOOL_PREF__
Allows for storage of bools.
Definition: hdicoreBoolPref.h:20
BoolPref(const bool value_, const std::string &name_="")
Constructs a BoolPref object, with new data, to be added to a container at a later time.
BoolPref()
Constructs an empty BoolPref object.
BoolPref(const BoolPref &b_)
Constructs a new BoolPref object from an existing BoolPref object (copy constructor)
virtual BoolPref * clone() const
Convenience method to clone an BoolPref object on the heap.
virtual BoolPref & operator=(const BoolPref &rhs_)
Allows one BoolPref object to be assigned from another.
virtual bool boolValue() const
Gets the bool value for this object.
virtual bool setBoolValue(const bool value_)
Sets the bool value for this object.
virtual ~BoolPref()
Destructs a BoolPref object.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Header file for general preference data storage.