ADTF  3.18.2
ddl::dd::utility Namespace Reference

definition of the utility namespace More...

Classes

class  TypeAccessList
 Utility class for observable named items where the order is important. More...
 
class  TypeAccessMap
 Utility class for observable named items where the order is NOT important. 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...
 

Typedefs

template<typename T >
using TypeAccessListSubject = ModelSubjectUtility< T, TypeAccessListEventCode >
 helper template to observe list content. More...
 
template<typename T >
using TypeAccessListObserver = ModelObserverUtility< T, TypeAccessListEventCode >
 helper template to observe list content. More...
 
template<typename T >
using TypeAccessMapSubject = ModelSubjectUtility< T, TypeAccessMapEventCode >
 helper template to observe map content. More...
 
template<typename T >
using TypeAccessMapObserver = ModelObserverUtility< T, TypeAccessMapEventCode >
 helper template to observe map content. More...
 

Enumerations

enum  TypeAccessListEventCode {
  list_item_added , list_item_removed , list_item_changed , list_item_renamed ,
  list_subitem_added , list_subitem_removed , list_subitem_changed , list_item_popped ,
  list_subitem_popped , list_item_inserted , list_subitem_inserted
}
 Internal event code to inform the parent DD Object about the change of an item within the list. More...
 
enum  TypeAccessMapEventCode {
  map_item_added , map_item_removed , map_item_changed , map_item_renamed ,
  map_subitem_added , map_subitem_removed , map_subitem_changed , map_subitem_renamed ,
  map_subitem_popped , map_subitem_inserted
}
 Internal event code to inform the parent DD Object about the change of an item within the list. More...
 

Functions

bool isInteger (const std::string &string_to_check)
 Checks if the given string is an integer value. More...
 

Detailed Description

definition of the utility namespace

Typedef Documentation

◆ TypeAccessListObserver

helper template to observe list content.

Remarks
for internal use only.
Template Parameters
Tthe subject class to observe

Definition at line 70 of file dd_access_list.h.

◆ TypeAccessListSubject

helper template to observe list content.

Remarks
for internal use only.
Template Parameters
Tthe subject class to observe

Definition at line 61 of file dd_access_list.h.

◆ TypeAccessMapObserver

helper template to observe map content.

Remarks
for internal use only.
Template Parameters
Tthe subject class to observe

Definition at line 64 of file dd_access_map.h.

◆ TypeAccessMapSubject

helper template to observe map content.

Remarks
for internal use only.
Template Parameters
Tthe subject class to observe

Definition at line 55 of file dd_access_map.h.

Enumeration Type Documentation

◆ TypeAccessListEventCode

Internal event code to inform the parent DD Object about the change of an item within the list.

Remarks
for internal use only. The user API will use ddl::dd::datamodel::ModelEventCode only.

Definition at line 40 of file dd_access_list.h.

◆ TypeAccessMapEventCode

Internal event code to inform the parent DD Object about the change of an item within the list.

Remarks
for internal use only. The user API will use ddl::dd::datamodel::ModelEventCode only.

Definition at line 35 of file dd_access_map.h.

Function Documentation

◆ isInteger()

bool ddl::dd::utility::isInteger ( const std::string &  string_to_check)

Checks if the given string is an integer value.

Parameters
[in]string_to_checkthe string to check
Returns
true/false

Referenced by DDFromXMLFactory< DOM_NODE_TYPE >::isInteger().