Class sysc::StringAttribute
Definition: Attribute.hpp (line 130)
Provide a class for a string-valued attribute.
Members
Private attributes
Variable m_name
Definition: Attribute.hpp (line 165)
AttributeName sysc::StringAttribute::m_name
Type: AttributeName
Variable m_value
Definition: Attribute.hpp (line 166)
std::string sysc::StringAttribute::m_value {0}
Type: std::string
Variable m_modifiable
Definition: Attribute.hpp (line 167)
bool sysc::StringAttribute::m_modifiable {true}
Type: bool
Public functions
Function StringAttribute
sysc::StringAttribute::StringAttribute(AttributeName name, std::string value)
Provide a constructor for the StringAttribute class.
Parameters:
- name: - attribute name.
- value: - attribute value.
Parameters:
- AttributeName name
- std::string value
Return type:
Function StringAttribute
sysc::StringAttribute::StringAttribute(AttributeName name, std::string value, bool modifiable)
Provide a constructor for the StringAttribute class.
Parameters:
-
name: - attribute name.
-
value: - attribute value.
Parameters:
- modifiable: - attribute is modifiable.
Parameters:
- AttributeName name
- std::string value
- bool modifiable
Return type:
Function getName
const AttributeName& sysc::StringAttribute::getName() const noexcept
Return type: const AttributeName &
Function getValue
std::string sysc::StringAttribute::getValue() const
Return type: std::string
Function isModifiable
bool sysc::StringAttribute::isModifiable() const noexcept
Return type: bool