maptek.vulcan.attributes

Class for accessing object attribute data.


template_list ( attributes self ) → str_list

List of templates defined for the object.

attribute_list ( attributes self, std::string const & temp ) → str_list

List of attributes in a given template.

get_template ( attributes self, std::string const & temp ) → MVariant

Gets the dictionary for a given template.

set_template ( attributes self, std::string const & temp, MVariant & data )

Sets the attributes of a template from a dictionary.

get_attribute ( attributes self, std::string const & temp, std::string const & attribute ) → MVariant

Gets a single attribute.

get_date_attribute ( attributes self, std::string const & temp, std::string const & attribute ) → mtk::datetime::DateTime

Gets a date attribute as a Python datetime object.

set_attribute ( attributes self, std::string const & temp, std::string const & attribute, MVariant & value )

Sets a single attribute.

as_dict ( attributes self ) → MVariant

Gets the attribute data as a dictionary.

from_dict ( attributes self, MVariant & data )

Sets the attribute data from a dictionary.