![]() |
Hot Door CORE 0.8.4
Adobe® Illustrator® Plug-in Library
|
Embodies Illustrator's dictionary storage containers; can be placed inside an array, or another dictionary. More...
#include <hdicoreaiDictionary.h>
Classes | |
| class | Iterator |
| Allows for iteration through the members of a dictionary, a la std::vector iteration. More... | |
Public Types | |
| typedef std::unique_ptr< Iterator > | IteratorUP |
| typedef std::shared_ptr< Iterator > | IteratorSP |
| typedef std::weak_ptr< Iterator > | IteratorWP |
Public Member Functions | |
| Dictionary () | |
| Constructs a Dictionary object as a new data container. | |
| Dictionary (const Dictionary &d_) | |
| Dictionary copy constructor. | |
| Dictionary (const AIDictionaryRef aiDict_) | |
| Constructs a new Dictionary object from an AIDictionaryRef. | |
| virtual | ~Dictionary () |
| Destructs a Dictionary object. | |
| virtual Dictionary & | operator= (const Dictionary &rhs_) |
| Overloaded assignment operator for Dictionary objects. | |
| virtual bool | operator== (const Dictionary &rhs_) const |
| Tests whether a given Dictionary object is the same as another. | |
| virtual bool | operator!= (const Dictionary &rhs_) const |
| Tests whether a given Dictionary object is not the same as another. | |
| virtual AIDictionaryRef | aiDictionaryRef () const |
| Gets the dictionary ref around which the target object is wrapped. | |
| virtual bool | getEntry (const std::string &keyName_, Entry &entry__) const |
| Gets an entry from the array by name. | |
| virtual bool | setEntry (const std::string &keyName_, const Entry &entry_) |
| Sets an entry in the dictionary by key name. | |
| virtual bool | deleteEntry (const std::string &keyName_) |
| Removes an entry in the dictionary by key name. | |
| virtual bool | getArrayEntry (const std::string &keyName_, Array &array__) const |
| Gets an array entry from the dictionary by name. | |
| virtual bool | setArrayEntry (const std::string &keyName_, const Array &array_) |
| Sets an array entry in the dictionary by name. | |
| virtual bool | getBoolEntry (const std::string &keyName_, bool &value__) const |
| Gets a bool entry from the dictionary by name. | |
| virtual bool | setBoolEntry (const std::string &keyName_, const bool value_) |
| Sets a bool entry in the dictionary by name. | |
| virtual bool | getDictEntry (const std::string &keyName_, Dictionary &dict__) const |
| Gets a dictionary entry from the dictionary by name. | |
| virtual bool | setDictEntry (const std::string &keyName_, const Dictionary &dict_) |
| Sets a dictionary entry in the dictionary by name. | |
| virtual bool | getIntEntry (const std::string &keyName_, int64_t &value__) const |
| Gets an integer entry from the dictionary by name. | |
| virtual bool | setIntEntry (const std::string &keyName_, const int64_t value_) |
| Sets an integer entry in the dictionary by name. | |
| virtual bool | getFloatEntry (const std::string &keyName_, double &value__) const |
| Gets a floating point entry from the dictionary by name. | |
| virtual bool | setFloatEntry (const std::string &keyName_, const double value_) |
| Sets a floating point entry in the dictionary by name. | |
| virtual bool | getStringEntry (const std::string &keyName_, std::string &value__) const |
| Gets a string entry from the dictionary by name. | |
| virtual bool | setStringEntry (const std::string &keyName_, const std::string &value_) |
| Sets a string entry in the dictionary by name. | |
| virtual bool | getUIDEntry (const std::string &keyName_, UID &uid__) const |
| Gets a UID entry from the dictionary by name. | |
| virtual bool | setUIDEntry (const std::string &keyName_, const UID &value_) |
| Sets a UID entry in the dictionary by key. | |
| virtual bool | getArtEntry (const std::string &keyName_, Art &art__) const |
| Gets an Art entry from the dictionary by name. | |
| virtual bool | setArtEntry (const std::string &keyName_, const Art &value_) |
| Sets an Art entry in the dictionary by key. | |
| virtual bool | hasKey (const std::string &keyName_) const |
| Tests whether the dictionary has an entry with a particular key. | |
| virtual bool | clear () |
| Removes all entries from the dictionary. | |
| Iterator | begin () const |
| Gets an iterator for the entries in the dictionary, starting with the first. | |
Friends | |
| aip::IllustratorDictionary * | __accessImpl (const Dictionary &) |
| Dictionary | __accessCtor (const aip::IllustratorDictionary &) |
Embodies Illustrator's dictionary storage containers; can be placed inside an array, or another dictionary.
| hdi::core::ai::Dictionary::Dictionary | ( | ) |
Constructs a Dictionary object as a new data container.
| hdi::core::ai::Dictionary::Dictionary | ( | const Dictionary & | d_ | ) |
| hdi::core::ai::Dictionary::Dictionary | ( | const AIDictionaryRef | aiDict_ | ) |
Constructs a new Dictionary object from an AIDictionaryRef.
| aiDict_ | Raw Illustrator AIDictionaryRef |
|
virtual |
Destructs a Dictionary object.
|
virtual |
Gets the dictionary ref around which the target object is wrapped.
| Iterator hdi::core::ai::Dictionary::begin | ( | ) | const |
Gets an iterator for the entries in the dictionary, starting with the first.
|
virtual |
Removes all entries from the dictionary.
|
virtual |
Removes an entry in the dictionary by key name.
| keyName_ | Name of the entry to delete, as UTF-8 |
|
virtual |
Gets an array entry from the dictionary by name.
| keyName_ | Name of the array entry, as UTF-8 |
| array__ | Return-by-reference for the indicated array entry |
|
virtual |
|
virtual |
Gets a bool entry from the dictionary by name.
| keyName_ | Name of the bool entry, as UTF-8 |
| value__ | Return-by-reference for the indicated bool entry |
|
virtual |
Gets a dictionary entry from the dictionary by name.
| keyName_ | Name of the dictionary entry, as UTF-8 |
| dict__ | Return-by-reference for the indicated dictionary entry |
|
virtual |
Gets an entry from the array by name.
| keyName_ | Name of the entry in question, as UTF-8 |
| entry__ | Return-by-reference for an Entry object representing the dictionary entry with the provided key name |
|
virtual |
Gets a floating point entry from the dictionary by name.
| keyName_ | Name of the floating point entry, as UTF-8 |
| value__ | Return-by-reference for the indicated floating point entry |
|
virtual |
Gets an integer entry from the dictionary by name.
| keyName_ | Name of the integer entry, as UTF-8 |
| value__ | Return-by-reference for the indicated integer entry |
|
virtual |
Gets a string entry from the dictionary by name.
| keyName_ | Name of the string entry, as UTF-8 |
| value__ | Return-by-reference for the indicated string entry, as UTF-8 |
|
virtual |
|
virtual |
Tests whether the dictionary has an entry with a particular key.
| keyName_ | Name of the entry in question, as UTF-8 |
|
virtual |
Tests whether a given Dictionary object is not the same as another.
| rhs_ | Dictionary to compare against (righthand side of inequality operator) |
|
virtual |
Overloaded assignment operator for Dictionary objects.
| rhs_ | Righthand side of the assignment operator; existing Dictionary object that the target should reference instead |
|
virtual |
Tests whether a given Dictionary object is the same as another.
| rhs_ | Dictionary to compare against (righthand side of equality operator) |
|
virtual |
Sets an array entry in the dictionary by name.
| keyName_ | Name of the array entry, as UTF-8 |
| array_ | New value for the array entry |
|
virtual |
Sets an Art entry in the dictionary by key.
| keyName_ | Name of the art entry, as UTF-8 |
| value_ | New value for the art entry |
|
virtual |
Sets a bool entry in the dictionary by name.
| keyName_ | Name of the bool entry, as UTF-8 |
| value_ | New value for the bool entry |
|
virtual |
Sets a dictionary entry in the dictionary by name.
| keyName_ | Name of the dictionary entry, as UTF-8 |
| dict_ | New value for the dictionary entry |
|
virtual |
Sets an entry in the dictionary by key name.
| keyName_ | Name of the entry in question, as UTF-8 |
| entry_ | Entry to set on the dictionary |
|
virtual |
Sets a floating point entry in the dictionary by name.
| keyName_ | Name of the floating point entry, as UTF-8 |
| value_ | New value for the floating point entry |
|
virtual |
Sets an integer entry in the dictionary by name.
| keyName_ | Name of the integer entry, as UTF-8 |
| value_ | New value for the integer entry |
|
virtual |
Sets a string entry in the dictionary by name.
| keyName_ | Name of the string entry, as UTF-8 |
| value_ | New value for the string entry, as UTF-8 |
|
virtual |