Attributes can be used to associate arbitrary data with a node or a NetworkModel (i.e., a Class or a Domain). More...
Public Member Functions | |
std::string | getKey () const |
Returns the key associated with this Attribute. | |
std::string | getValue () const |
Returns the value associated with this Attribute. |
Attributes can be used to associate arbitrary data with a node or a NetworkModel (i.e., a Class or a Domain).
Attributes are set using the setAttribute method on the NetworkModel and Node classes. Each data object must be a string and attributes are read-only objects. Thus, in order to change the value of a data object or to add a new data object, the setAttribute method must be used. An attribute associated with a NetworkModel or a Node is removed using deleteAttribute.
std::string HAPI::Attribute::getKey | ( | ) | const |
Returns the key associated with this Attribute.
std::string HAPI::Attribute::getValue | ( | ) | const |
Returns the value associated with this Attribute.