Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
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 
12 namespace hdi
13 {
14  namespace core
15  {
19  class EntryValue
20  {
21  public:
25  enum ValueType
26  {
27  UnknownValueType = 0,
28  StringValueType = 10,
29  ImageValueType = 20
30  };
31 
39  EntryValue(const EntryValue& ev_);
40 
48  explicit EntryValue(const std::string& str_);
49 
57  EntryValue(const ImageIDs& ids_);
58 
64  ~EntryValue();
65 
74  EntryValue& operator=(const EntryValue& rhs_);
75 
84  bool operator==(const EntryValue& rhs_) const;
85 
94  bool operator!=(const EntryValue& rhs_) const;
95 
103  ValueType type() const;
104 
112  std::string stringValue() const;
113 
122  bool setStringValue(const std::string& str_);
123 
133  ImageIDs imageIDs() const;
134 
143  bool setImageIDs(const ImageIDs& ids_);
144 
145 
146  private:
150  ValueType __type;
151 
155  std::string __strVal;
156 
160  ImageIDs __imageIDs;
161 
167  EntryValue();
168  };
169 
170  typedef std::auto_ptr<EntryValue> EntryValueAP;
171  }
172 }
173 
174 #endif
175 // __HDI_CORE_ENTRY_VALUE__
std::string stringValue() const
Gets the string value for the target object.
bool operator==(const EntryValue &rhs_) const
Overloaded equality operator to compare two EntryValue objects to one another.
ValueType
Indicates the type of value stored in an EntryValue object.
Definition: hdicoreEntryValue.h:25
Allows for a *Entry class to store either a string value or PNGI image ID for a row/column.
Definition: hdicoreEntryValue.h:19
ImageIDs imageIDs() const
Gets the image ID values for the target object.
ValueType type() const
Gets the type of value representing by the target object.
Definition: hdicoreaiArray.h:12
~EntryValue()
EntryValue destructor.
bool operator!=(const EntryValue &rhs_) const
Overloaded inequality operator to compare two EntryValue objects to one another.
Header file for handling image IDs and their higher resolution variants.
EntryValue & operator=(const EntryValue &rhs_)
Overloaded assignment operator to copy values from one EntryValue object to another.
bool setStringValue(const std::string &str_)
Sets the string value for the target object.
Stores both light and dark image PNGI resource IDs, such that Illustrator UI brightness changes can b...
Definition: hdicoreImageIDs.h:20
bool setImageIDs(const ImageIDs &ids_)
Sets the image ID values for the target object.