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