class SugElement |
SugElement is really the current heart of libsugar.
![]() | SugElement () The class constructor |
![]() | addAttribute (char* name, char* value) Adds an attribute and it's corresponding value to the attribute map |
![]() | getColorAttribute (char* attrName, SugColor& attrValue) Gets the specified attribute's value in color format. |
![]() | getElementType () returns the mElementType, this is later used for casting |
![]() | getFloatAttribute (char* attrName, float& attrValue) Gets the specified attribute's value in float format. |
![]() | getId () Returns the id of this element. |
![]() | getIntegerAttribute (char* attrName, int& attrValue) Gets the specified attribute's value in integer format. |
![]() | getPointListAttribute (char* attrName, vector<SugPoint>& attrValue) Gets the specified attribute's value in point list format. |
![]() | getStringAttribute (char* attrName) Gets the specified attribute's value in string format. |
![]() | getTransformListAttribute (vector<SugTransform>& attrValue) Gets the "transform" attribute's value in transform list format. |
![]() | printAttributes () Debug function that prints the names and values of all attributes |
![]() | setElementType (SugTypes::ElementType newType) sets the mElementType of this class |
![]() | ~SugElement () The class destructor |
![]() | mAttributes A map containing all the attributes of this element. |
![]() | 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