|
ADTF
|
definition of the utility namespace More...
Classes | |
| class | IInfo |
| Basic Info interface can be added to the ddl::dd::datamodel::InfoMap. More... | |
| class | Info |
| Helper template class to create valid IInfo objects. More... | |
| class | InfoMap |
| Info Map for the datamodel to hold a set of optional IInfo instances. Only one instance of one Info type is possible. More... | |
| class | ModelObserverUtility |
| The ModelObserver utility template. More... | |
| class | ModelSubjectUtility |
| Model Subject utility to define a Model Subject that notifies one or more observers. More... | |
| struct | Optional |
| An optional template as long as the std::optional is not available here. More... | |
| class | TypeAccessList |
Bug fix class for ddl::dd::utility::TypeAccessList to get rid of providing getNamedItemList in validator. More... | |
| class | TypeAccessMap |
| Utility class for observable named items where the order is NOT important. More... | |
| class | TypeAccessVector |
| Utility class for observable named items where the order is important. More... | |
| struct | VersionRequirement |
| VersionRequirement to report a Version requirement. More... | |
Typedefs | |
| template<typename T> | |
| using | TypeAccessListSubject = ModelSubjectUtility<T, TypeAccessListEventCode> |
| helper template to observe list content. | |
| template<typename T> | |
| using | TypeAccessListObserver = ModelObserverUtility<T, TypeAccessListEventCode> |
| helper template to observe list content. | |
| using | OptionalSize = Optional<size_t> |
| template<typename T> | |
| using | TypeAccessVectorSubject = ModelSubjectUtility<T, TypeAccessVectorEventCode> |
| helper template to observe vector content. | |
| template<typename T> | |
| using | TypeAccessVectorObserver = ModelObserverUtility<T, TypeAccessVectorEventCode> |
| helper template to observe vector content. | |
| using | Error = ::ddl::dd::Error |
| Exception helper class to collect information while parsing, adding DD Objects or other failed operatons. | |
| using | Problem = ::ddl::dd::Problem |
| Problem to report to find the corresponding item name in a simple way. | |
| template<typename T> | |
| using | TypeAccessMapObserver |
| helper template to observe map content. | |
| template<typename T> | |
| using | TypeAccessMapSubject |
| helper template to observe map content. | |
Enumerations | |
| enum | TypeAccessVectorEventCode { vector_item_added , vector_item_removed , vector_item_changed , vector_item_renamed , vector_subitem_added , vector_subitem_removed , vector_subitem_changed , vector_item_popped , vector_subitem_popped , vector_item_inserted , vector_subitem_inserted , vector_subitem_renamed , vector_item_removing , vector_subitem_removing , vector_item_renaming , vector_subitem_renaming } |
| Internal event code to inform the parent DD Object about the change of an item within the list. More... | |
| enum | TypeAccessListEventCode |
| Internal event code to inform the parent DD Object about the change of an item within the list. More... | |
| enum | TypeAccessMapEventCode |
| Internal event code to inform the parent DD Object about the change of an item within the list. More... | |
Functions | |
| Optional< int > | toType (const std::string &from_string, const Optional< int > &default_value={}) |
| specialized conversion to the Optional<int> | |
| Optional< size_t > | toType (const std::string &from_string, const utility::Optional< size_t > &default_value={}) |
| specialized conversion to the Optional<size_t> | |
| Optional< std::string > | toType (const std::string &from_string, const utility::Optional< std::string > &default_value={}) |
| specialized function to convert a string to an optional string which is only valid if set. | |
| void | replaceInString (std::string &string_data, const std::string &to_replace, const std::string &replace_with) |
| In place replacement helper function. | |
| std::vector< std::string > | transformProblemList (const std::vector< Problem > &problems) |
| transforms the Problem List to a simple vector of strings. Simple usage: | |
| bool | isInteger (const std::string &string_to_check) noexcept |
| Checks if the given string is an integer value. | |
definition of the utility namespace
| using ddl::utility::Error = ::ddl::dd::Error |
Exception helper class to collect information while parsing, adding DD Objects or other failed operatons.
| using ddl::utility::OptionalSize = Optional<size_t> |
optional size definition.
Problem to report to find the corresponding item name in a simple way.
| using ddl::utility::TypeAccessListObserver = ModelObserverUtility<T, TypeAccessListEventCode> |
helper template to observe list content.
| T | the subject class to observe |
| using ddl::utility::TypeAccessListSubject = ModelSubjectUtility<T, TypeAccessListEventCode> |
helper template to observe list content.
| T | the subject class to observe |
| using ddl::dd::utility::TypeAccessMapObserver |
helper template to observe map content.
| T | the subject class to observe |
| using ddl::dd::utility::TypeAccessMapSubject |
helper template to observe map content.
| T | the subject class to observe |
| using ddl::utility::TypeAccessVectorObserver = ModelObserverUtility<T, TypeAccessVectorEventCode> |
helper template to observe vector content.
| T | the subject class to observe |
| using ddl::utility::TypeAccessVectorSubject = ModelSubjectUtility<T, TypeAccessVectorEventCode> |
helper template to observe vector content.
| T | the subject class to observe |
Internal event code to inform the parent DD Object about the change of an item within the list.
Internal event code to inform the parent DD Object about the change of an item within the list.
Internal event code to inform the parent DD Object about the change of an item within the list.
|
noexcept |
Checks if the given string is an integer value.
| [in] | string_to_check | the string to check |
| void ddl::utility::replaceInString | ( | std::string & | string_data, |
| const std::string & | to_replace, | ||
| const std::string & | replace_with ) |
In place replacement helper function.
| string_data | the string data to replace in |
| to_replace | the string to replace |
| replace_with | the string to replace with |
| Optional< int > ddl::utility::toType | ( | const std::string & | from_string, |
| const Optional< int > & | default_value = {} ) |
specialized conversion to the Optional<int>
| from_string | string representation of the value |
| default_value | the optional value to set if not set in from_string |
| Optional< size_t > ddl::utility::toType | ( | const std::string & | from_string, |
| const utility::Optional< size_t > & | default_value = {} ) |
specialized conversion to the Optional<size_t>
| from_string | string representation of the value |
| default_value | the optional value to set if not set in from_string |
| Optional< std::string > ddl::utility::toType | ( | const std::string & | from_string, |
| const utility::Optional< std::string > & | default_value = {} ) |
specialized function to convert a string to an optional string which is only valid if set.
| from_string | the string to convert from |
| default_value | the optional value to set if from_string is empty |
| std::vector< std::string > ddl::dd::transformProblemList | ( | const std::vector< Problem > & | problems | ) |
transforms the Problem List to a simple vector of strings.
Simple usage:
| problems | the problems to tranform. |