Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreEntryValue.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_ENTRY_VALUE__
8#define __HDI_CORE_ENTRY_VALUE__
9
10#include "hdicoreImageIDs.h"
11#include "hdicoreSVGIDs.h"
12
13namespace hdi
14{
15 namespace core
16 {
21 {
22 public:
27 {
28 UnknownValueType = 0,
29 StringValueType = 10,
30 ImageValueType = 20,
31 VectorValueType = 30
32 };
33
42
50 explicit EntryValue(const std::string& str_);
51
59 EntryValue(const ImageIDs& ids_);
60
68 EntryValue(const SVGIDs& ids_);
69
76
86
95 bool operator==(const EntryValue& rhs_) const;
96
105 bool operator!=(const EntryValue& rhs_) const;
106
115
123 std::string stringValue() const;
124
133 bool setStringValue(const std::string& str_);
134
145
154 bool setImageIDs(const ImageIDs& ids_);
155
165 SVGIDs svgIDs() const;
166
175 bool setSVGIDs(const SVGIDs& ids_);
176
177
178 private:
182 ValueType __type;
183
187 std::string __strVal;
188
192 ImageIDs __imageIDs;
193
197 SVGIDs __svgIDs;
198
204 EntryValue();
205 };
206
207 typedef std::unique_ptr<EntryValue> EntryValueUP;
208 typedef std::shared_ptr<EntryValue> EntryValueSP;
209 typedef std::weak_ptr<EntryValue> EntryValueWP;
210 }
211}
212
213#endif
214// __HDI_CORE_ENTRY_VALUE__
Allows for a *Entry class to store either a string value or PNGI image ID for a row/column.
Definition: hdicoreEntryValue.h:21
ValueType
Indicates the type of value stored in an EntryValue object.
Definition: hdicoreEntryValue.h:27
EntryValue(const EntryValue &ev_)
EntryValue copy constructor.
bool operator!=(const EntryValue &rhs_) const
Overloaded inequality operator to compare two EntryValue objects to one another.
bool setStringValue(const std::string &str_)
Sets the string value for the target object.
~EntryValue()
EntryValue destructor.
SVGIDs svgIDs() const
Gets the SVG ID values for the target object.
bool setSVGIDs(const SVGIDs &ids_)
Sets the SVG ID values for the target object.
EntryValue & operator=(const EntryValue &rhs_)
Overloaded assignment operator to copy values from one EntryValue object to another.
bool operator==(const EntryValue &rhs_) const
Overloaded equality operator to compare two EntryValue objects to one another.
ImageIDs imageIDs() const
Gets the image ID values for the target object.
bool setImageIDs(const ImageIDs &ids_)
Sets the image ID values for the target object.
EntryValue(const ImageIDs &ids_)
Constructs an EntryValue object with PNGI image IDs.
ValueType type() const
Gets the type of value representing by the target object.
std::string stringValue() const
Gets the string value for the target object.
EntryValue(const SVGIDs &ids_)
Constructs an EntryValue object with SVG image IDs.
EntryValue(const std::string &str_)
Constructs an EntryValue object with a string value.
Stores both light and dark image PNGI resource IDs, such that app UI brightness changes can be proper...
Definition: hdicoreImageIDs.h:21
Stores both light and dark SVG resource IDs, such that app UI brightness changes can be properly hand...
Definition: hdicoreSVGIDs.h:21
Header file for handling image IDs and their higher resolution variants.
Header file for handling vector graphic IDs.