class SugElement |
SugElement is really the current heart of libsugar.
SugElement () The class constructor | |
void | addAttribute (char* name, char* value) Adds an attribute and it's corresponding value to the attribute map |
bool | getColorAttribute (char* attrName, SugColor& attrValue) Gets the specified attribute's value in color format. |
SugTypes::ElementType | getElementType () returns the mElementType, this is later used for casting |
bool | getFloatAttribute (char* attrName, float& attrValue) Gets the specified attribute's value in float format. |
const char* | getId () Returns the id of this element. |
bool | getIntegerAttribute (char* attrName, int& attrValue) Gets the specified attribute's value in integer format. |
bool | getPointListAttribute (char* attrName, vector<SugPoint>& attrValue) Gets the specified attribute's value in point list format. |
const char* | getStringAttribute (char* attrName) Gets the specified attribute's value in string format. |
bool | getTransformListAttribute (vector<SugTransform>& attrValue) Gets the "transform" attribute's value in transform list format. |
void | printAttributes () Debug function that prints the names and values of all attributes |
void | setElementType (SugTypes::ElementType newType) sets the mElementType of this class |
~SugElement () The class destructor |
map<string, string> | mAttributes A map containing all the attributes of this element. |
SugTypes::ElementType | mElementType This is the element type identifier, this is how we know what to cast our element as (see above) |
SugElement is really the current heart of libsugar. The parser will output a vector of SugElements. These SugElements are not of type SugElement but are of one of a derived class, so you can think of SugElement as the cookie cutter parent class that they all conform to.
Alphabetic index HTML hierarchy of classes or Java