Skip to main content
Definition: Attribute.hpp (line 130) Provide a class for a string-valued attribute.

Members

Private attributes

Variable m_name

Definition: Attribute.hpp (line 165)
Type: AttributeName

Variable m_value

Definition: Attribute.hpp (line 166)
Type: std::string

Variable m_modifiable

Definition: Attribute.hpp (line 167)
Type: bool

Public functions

Function StringAttribute

Provide a constructor for the StringAttribute class. Parameters:
  • name: - attribute name.
  • value: - attribute value.
Parameters: Return type:

Function StringAttribute

Provide a constructor for the StringAttribute class. Parameters:
  • name: - attribute name.
  • value: - attribute value.
Parameters:
  • modifiable: - attribute is modifiable.
Parameters: Return type:

Function getName

Return type: const AttributeName &

Function getValue

Return type: std::string

Function isModifiable

Return type: bool