Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreStringPref.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_STRING_PREF__
8 #define __HDI_CORE_STRING_PREF__
9 
10 #include "hdicorePrefData.h"
11 
12 namespace hdi
13 {
14  namespace core
15  {
19  class StringPref : public PrefData
20  {
21  public:
33  StringPref();
34 
42  StringPref(const StringPref& str_);
43 
55  StringPref(const std::string& value_, const std::string& name_ = "");
56 
62  virtual ~StringPref();
63 
72  virtual StringPref& operator=(const StringPref& rhs_);
73 
87  virtual StringPref* clone() const;
88 
96  virtual std::string stringValue() const;
97 
106  virtual bool setStringValue(const std::string& value_);
107  };
108 
109  typedef std::auto_ptr<StringPref> StringPrefAP;
110  }
111 }
112 
113 #endif
114 // __HDI_CORE_STRING_PREF__
virtual std::string stringValue() const
Gets the string value for this object.
virtual StringPref * clone() const
Convenience method to clone an StringPref object on the heap.
virtual ~StringPref()
Destructs a StringPref object.
virtual StringPref & operator=(const StringPref &rhs_)
Allows one StringPref object to be assigned from another.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
Definition: hdicoreaiArray.h:12
Allows for the storage of strings.
Definition: hdicoreStringPref.h:19
StringPref()
Constructs an empty StringPref object.
virtual bool setStringValue(const std::string &value_)
Sets the string value for this object.
Header file for general preference data storage.