Utility class for a complete valid data definition of one StructType::Element and its dependencies. This class is for convenience to use it together with ddl::DDStructure .
More...
#include <ddelement_ref.h>
Utility class for a complete valid data definition of one StructType::Element and its dependencies. This class is for convenience to use it together with ddl::DDStructure .
- See also
- ddl::DDStructure.
◆ getDD()
◆ getElement()
◆ operator=() [1/2]
assignment copy operator
- Returns
- DDElement& reference
◆ operator=() [2/2]
assignment move operator
- Returns
- DDElement& reference
◆ setComment()
| DDElementRef & ddl::DDElementRef::setComment |
( |
const std::string & | comment | ) |
|
Set additional element information to the given element_name.
- Parameters
-
- Returns
- *this
◆ setDefaultValue()
| DDElementRef & ddl::DDElementRef::setDefaultValue |
( |
const std::string & | default_value | ) |
|
Set the default value information to the element.
- Parameters
-
| default_value | The default value |
- Returns
- *this
◆ setDescription()
| DDElementRef & ddl::DDElementRef::setDescription |
( |
const std::string & | description | ) |
|
Set the description to the element.
- Parameters
-
| description | The description |
- Returns
- *this
◆ setMinMax()
| DDElementRef & ddl::DDElementRef::setMinMax |
( |
const std::string & | minimum_value, |
|
|
const std::string & | maximum_value ) |
Set additional element information to the given element_name.
- Parameters
-
| minimum_value | The minimum value |
| maximum_value | The maximum value |
- Returns
- *this
◆ setScaleOffset()
| DDElementRef & ddl::DDElementRef::setScaleOffset |
( |
const std::string & | scale, |
|
|
const std::string & | offset ) |
Set scale and offset information to the element.
- Parameters
-
| scale | The scale |
| offset | The offset |
- Returns
- *this
◆ setUnit() [1/2]
Sets additional unit information to the element. Any other unit information will be overwritten.
- Parameters
-
- Returns
- *this
◆ setUnit() [2/2]
Sets additional unit information to the element. Any other unit information will be overwritten.
- Parameters
-
- Returns
- *this
◆ setValidElementCount()
| DDElementRef & ddl::DDElementRef::setValidElementCount |
( |
const std::string & | valid_element_count | ) |
|
Sets the 'valid_element_count' attribute to the element.
- Parameters
-
| valid_element_count | The valid_element_count name. |
- Returns
- *this
- Exceptions
-
| dd::Error | if element invalidates (i.e. valid_element_count is not a valid sibling element name) |
◆ setValue()
| DDElementRef & ddl::DDElementRef::setValue |
( |
const std::string & | value | ) |
|
Set the constant value information to the element.
- Parameters
-
- Returns
- *this
- Exceptions
-
| dd::Error | if element invalidates (i.e. the constant value is not part of the type) |
The documentation for this class was generated from the following file: