Datamodel parameter value class used within Assignment.
More...
#include <datamodel_configuration_items.h>
Inherits ddl::utility::TypeAccessListSubject< ParameterValue >, and ddl::dd::datamodel::InfoMap.
Datamodel parameter value class used within Assignment.
◆ Type
Type of the parameter value.
◆ ParameterValue() [1/5]
| ddl::mapping::datamodel::ParameterValue::ParameterValue |
( |
const ParameterValue & | other | ) |
|
◆ ParameterValue() [2/5]
| ddl::mapping::datamodel::ParameterValue::ParameterValue |
( |
ParameterValue && | other | ) |
|
◆ ParameterValue() [3/5]
| ddl::mapping::datamodel::ParameterValue::ParameterValue |
( |
const std::string & | name, |
|
|
const SourceValue & | source_value ) |
CTOR.
the type will be set to Type::source_value
- Parameters
-
| name | the name |
| source_value | the parameter as source value |
◆ ParameterValue() [4/5]
| ddl::mapping::datamodel::ParameterValue::ParameterValue |
( |
const std::string & | name, |
|
|
const ConstValue & | const_value ) |
CTOR.
the type will be set to Type::const_value
- Parameters
-
| name | the name |
| const_value | the parameter as const value |
◆ ParameterValue() [5/5]
| ddl::mapping::datamodel::ParameterValue::ParameterValue |
( |
const std::string & | name, |
|
|
const InternalValue & | internal_value ) |
CTOR.
the type will be set to Type::internal_value
- Parameters
-
| name | the name |
| internal_value | the parameter as internal value |
◆ getConstValue()
| ConstValue ddl::mapping::datamodel::ParameterValue::getConstValue |
( |
| ) |
const |
◆ getInternalValue()
| InternalValue ddl::mapping::datamodel::ParameterValue::getInternalValue |
( |
| ) |
const |
◆ getName()
| const std::string & ddl::mapping::datamodel::ParameterValue::getName |
( |
| ) |
const |
Get the name.
- Returns
- const std::string&
◆ getSourceValue()
| SourceValue ddl::mapping::datamodel::ParameterValue::getSourceValue |
( |
| ) |
const |
◆ getType()
| Type ddl::mapping::datamodel::ParameterValue::getType |
( |
| ) |
const |
◆ operator!=()
| bool ddl::mapping::datamodel::ParameterValue::operator!= |
( |
const ParameterValue & | other | ) |
const |
inequality operator
- Parameters
-
| other | the other object to compare |
- Returns
- true is not equal
-
false is equal
◆ operator=() [1/2]
copy operator
Assigns the values through the setters, so an owning list is notified of each change like for the setters. The name is assigned first with setName, and if the list refuses it, the value stays unchanged.
- Parameters
-
- Returns
- ParameterValue&
- Exceptions
-
| ddl::dd::Error | if the value is in a list that has another item of the name |
◆ operator=() [2/2]
move operator, which assigns like the copy operator
- Parameters
-
- Returns
- ParameterValue&
- Exceptions
-
| ddl::dd::Error | if the value is in a list that has another item of the name |
◆ operator==()
| bool ddl::mapping::datamodel::ParameterValue::operator== |
( |
const ParameterValue & | other | ) |
const |
equality operator
- Parameters
-
| other | the other object to compare |
- Returns
- true is equal
-
false is not equal
◆ setAsConstValue()
| void ddl::mapping::datamodel::ParameterValue::setAsConstValue |
( |
const ConstValue & | const_value | ) |
|
Set the as const value.
the type will be set to Type::const_value
- Parameters
-
| const_value | the const value to set |
◆ setAsInternalValue()
| void ddl::mapping::datamodel::ParameterValue::setAsInternalValue |
( |
const InternalValue & | internal_value | ) |
|
Set the as internal value.
the type will be set to Type::internal_value
- Parameters
-
| internal_value | the internal value to set |
◆ setAsSourceValue()
| void ddl::mapping::datamodel::ParameterValue::setAsSourceValue |
( |
const SourceValue & | source_value | ) |
|
Set the as source value.
the type will be set to Type::source_value
- Parameters
-
| source_value | the source value to set |
◆ setName()
| void ddl::mapping::datamodel::ParameterValue::setName |
( |
const std::string & | name | ) |
|
The documentation for this class was generated from the following file: