Xport Interface: element::attributes

Retrieves all attribute values for the called element.

virtual std::map<xhtml_attribute, std::string>* element::attributes();1st Variety
virtual const std::map<xhtml_attribute, std::string>* element::attribute() const;2nd Variety

Parameters

none

Returns

Returns a pointer (or const pointer in the 2nd variety) to the element's attribute map.

Remarks

Return a pointer to a map of all attributes for the called element. The map will contain xhtml_attribute/string pairs. The attribute map does not contain any style attributes which may be present for the element. When called on a derived element object, a pointer (or const pointer in the 2nd variety) is to the element's attribute map is returned. In this map, the key type is xhtml_attribute enumerators, and the value type is a string representing the value for the corrasponding attribute.

Complexity

Constant

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.