HAPI::Attribute Class Reference

Attributes can be used to associate arbitrary data with a node or a NetworkModel (i.e., a Class or a Domain). More...

List of all members.

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.

Detailed Description

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.


Member Function Documentation

std::string HAPI::Attribute::getKey (  )  const

Returns the key associated with this Attribute.

Returns:
A string containing the key
std::string HAPI::Attribute::getValue (  )  const

Returns the value associated with this Attribute.

Returns:
A string containing the value

Copyright Hugin Expert A/S 1993-2010