ADTF
Loading...
Searching...
No Matches
ModelObserverUtility< MODEL_SUBJECT_T, EVENT_CODE_T >abstract

The ModelObserver utility template. More...

#include <access_observer.h>

Public Types

typedef EVENT_CODE_T event_code_type
 local definition of the event code type
 
typedef MODEL_SUBJECT_T subject_type
 local definition of the subject code type
 

Public Member Functions

virtual void modelChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)=0
 interface function to override.
 

Protected Member Functions

virtual ~ModelObserverUtility ()
 protected DTOR
 

Detailed Description

template<typename MODEL_SUBJECT_T, typename EVENT_CODE_T>
class ddl::dd::utility::ModelObserverUtility< MODEL_SUBJECT_T, EVENT_CODE_T >

The ModelObserver utility template.

Template Parameters
MODEL_SUBJECT_Tthe type of the subject to observe
EVENT_CODE_Tthe event code type

Definition at line 34 of file access_observer.h.

Member Typedef Documentation

◆ event_code_type

template<typename MODEL_SUBJECT_T, typename EVENT_CODE_T>
typedef EVENT_CODE_T event_code_type

local definition of the event code type

Definition at line 37 of file access_observer.h.

◆ subject_type

template<typename MODEL_SUBJECT_T, typename EVENT_CODE_T>
typedef MODEL_SUBJECT_T subject_type

local definition of the subject code type

Definition at line 39 of file access_observer.h.

Constructor & Destructor Documentation

◆ ~ModelObserverUtility()

template<typename MODEL_SUBJECT_T, typename EVENT_CODE_T>
virtual ~ModelObserverUtility ( )
inlineprotectedvirtual

protected DTOR

Definition at line 46 of file access_observer.h.

Member Function Documentation

◆ modelChanged()

template<typename MODEL_SUBJECT_T, typename EVENT_CODE_T>
virtual void modelChanged ( event_code_type event_code,
subject_type & changed_subject,
const std::string & additional_info )
pure virtual

interface function to override.

Parameters
event_codethe event code
changed_subjectthe subject changed
additional_infoadditional info (see i.e. ModelEventCode)

Implemented in TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS >, TypeAccessList< DDL_TYPE_TO_ACCESS, ::ddl::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS > >, TypeAccessList< DDL_TYPE_TO_ACCESS, ::ddl::utility::TypeAccessList< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS > >, TypeAccessList< Element, StructType >, TypeAccessList< Element, StructType >, TypeAccessList< Struct, Stream >, TypeAccessList< Struct, Stream >, TypeAccessMap< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS >, TypeAccessMap< BaseUnit, DataDefinition >, TypeAccessMap< BaseUnit, DataDefinition >, TypeAccessMap< BaseUnit, DataDefinition >, TypeAccessMap< BaseUnit, DataDefinition >, TypeAccessMap< DataType, DataDefinition >, TypeAccessMap< DataType, DataDefinition >, TypeAccessMap< DataType, DataDefinition >, TypeAccessMap< DataType, DataDefinition >, TypeAccessMap< Element, EnumType >, TypeAccessMap< Element, EnumType >, TypeAccessMap< Element, EnumType >, TypeAccessMap< Element, EnumType >, TypeAccessMap< EnumType, DataDefinition >, TypeAccessMap< EnumType, DataDefinition >, TypeAccessMap< EnumType, DataDefinition >, TypeAccessMap< EnumType, DataDefinition >, TypeAccessMap< ExtDeclaration, Header >, TypeAccessMap< ExtDeclaration, Header >, TypeAccessMap< ExtDeclaration, Header >, TypeAccessMap< ExtDeclaration, Header >, TypeAccessMap< Property, StreamMetaType >, TypeAccessMap< Property, StreamMetaType >, TypeAccessMap< Property, StreamMetaType >, TypeAccessMap< Property, StreamMetaType >, TypeAccessMap< Stream, DataDefinition >, TypeAccessMap< Stream, DataDefinition >, TypeAccessMap< Stream, DataDefinition >, TypeAccessMap< Stream, DataDefinition >, TypeAccessMap< StreamMetaType, DataDefinition >, TypeAccessMap< StreamMetaType, DataDefinition >, TypeAccessMap< StreamMetaType, DataDefinition >, TypeAccessMap< StreamMetaType, DataDefinition >, TypeAccessMap< StructType, DataDefinition >, TypeAccessMap< StructType, DataDefinition >, TypeAccessMap< StructType, DataDefinition >, TypeAccessMap< StructType, DataDefinition >, TypeAccessMap< Unit, DataDefinition >, TypeAccessMap< Unit, DataDefinition >, TypeAccessMap< Unit, DataDefinition >, TypeAccessMap< Unit, DataDefinition >, TypeAccessMap< UnitPrefix, DataDefinition >, TypeAccessMap< UnitPrefix, DataDefinition >, TypeAccessMap< UnitPrefix, DataDefinition >, TypeAccessMap< UnitPrefix, DataDefinition >, and TypeAccessMap< DDL_TYPE_TO_ACCESS, TYPE_VALIDATOR_CLASS >.