Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::Attribute Class Reference

List of all members.

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 by setting the value to null using setAttribute.


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.


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-2004