Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Used to contain data when writing/reading to/from the clipboard. More...
#include <hdicoreRuntime.h>
Public Types | |
enum | DataType { DataTypeUnknown = 0 , DataTypeString = 10 , DataTypeImage = 20 } |
Describes the type of data contained in a ClipboardData object. | |
Public Member Functions | |
ClipboardData () | |
Default ClipboardData constructor, setting the object to have default values. | |
ClipboardData (const ClipboardData &data_) | |
ClipboardData copy constructor to set the new object to have the same values as an existing object. | |
ClipboardData (const std::string &str_) | |
Constructs a new ClipboardData object from a string value. | |
virtual | ~ClipboardData () |
Destructs an existing ClipboardData object. | |
ClipboardData & | operator= (const ClipboardData &rhs_) |
Assigns one ClipboardData object to another. | |
bool | operator== (const ClipboardData &rhs_) const |
Tests whether a given ClipboardData object is the same as another. | |
bool | operator!= (const ClipboardData &rhs_) const |
Tests whether a given ClipboardData object is not the same as another. | |
DataType | dataType () const |
Gets the type of data held in the target. | |
std::string | stringData () const |
Gets the string data contained in the target object, if the type is DataTypeString. | |
void | setStringData (const std::string &str_) |
Sets the string data contained in the target object, converting the type to DataTypeString. | |
Used to contain data when writing/reading to/from the clipboard.
hdi::core::ClipboardData::ClipboardData | ( | ) |
Default ClipboardData constructor, setting the object to have default values.
hdi::core::ClipboardData::ClipboardData | ( | const ClipboardData & | data_ | ) |
ClipboardData copy constructor to set the new object to have the same values as an existing object.
data_ | Existing ClipboardData object |
hdi::core::ClipboardData::ClipboardData | ( | const std::string & | str_ | ) |
Constructs a new ClipboardData object from a string value.
str_ | String value that the ClipboardData object should hold, as UTF-8 |
|
virtual |
Destructs an existing ClipboardData object.
DataType hdi::core::ClipboardData::dataType | ( | ) | const |
Gets the type of data held in the target.
bool hdi::core::ClipboardData::operator!= | ( | const ClipboardData & | rhs_ | ) | const |
Tests whether a given ClipboardData object is not the same as another.
rhs_ | ClipboardData to compare against (righthand side of inequality operator) |
ClipboardData & hdi::core::ClipboardData::operator= | ( | const ClipboardData & | rhs_ | ) |
Assigns one ClipboardData object to another.
rhs_ | Existing ClipboardData object to copy values from |
bool hdi::core::ClipboardData::operator== | ( | const ClipboardData & | rhs_ | ) | const |
Tests whether a given ClipboardData object is the same as another.
rhs_ | ClipboardData to compare against (righthand side of equality operator) |
void hdi::core::ClipboardData::setStringData | ( | const std::string & | str_ | ) |
Sets the string data contained in the target object, converting the type to DataTypeString.
str_ | New string value to hold in the target, as UTF-8 |
std::string hdi::core::ClipboardData::stringData | ( | ) | const |
Gets the string data contained in the target object, if the type is DataTypeString.