Dev Essential
Loading...
Searching...
No Matches
ddl::mapping::datamodel::Property Class Reference

Datamodel property class used in Source, Target, Function. More...

#include <datamodel_configuration_items.h>

Inherits ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >, and ddl::dd::datamodel::InfoMap.

Public Member Functions

 Property ()=delete
 no CTOR
 
 Property (const Property &other)
 copy CTOR
 
 Property (Property &&other)
 move CTOR
 
 Property (const std::string &name, const std::string &value)
 CTOR.
 
 ~Property ()
 DTOR.
 
Propertyoperator= (const Property &other)
 copy operator
 
Propertyoperator= (Property &&other)
 move operator
 
bool operator== (const Property &other) const
 equality operator
 
bool operator!= (const Property &other) const
 inequality operator
 
const std::string & getName () const
 Get the name.
 
void setName (const std::string &name)
 Set the name.
 
const std::string & getValue () const
 Get the value.
 
void setValue (const std::string &value)
 Set the value.
 
- Public Member Functions inherited from ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >
 ModelSubjectUtility ()=default
 CTOR.
 
 ModelSubjectUtility (const ModelSubjectUtility &)
 copy CTOR which removes the observers in case of!
 
ModelSubjectUtilityoperator= (const ModelSubjectUtility &)
 copy assignment operator which removes the observers in case of!
 
virtual ~ModelSubjectUtility ()=default
 DTOR.
 
void attachObserver (observer_type *observer)
 adda a observer to notify.
 
void detachObserver (observer_type *observer)
 remove a observer if in list.
 
 ModelSubjectUtility ()=default
 CTOR.
 
 ModelSubjectUtility (const ModelSubjectUtility &)
 copy CTOR which removes the observers in case of!
 
ModelSubjectUtilityoperator= (const ModelSubjectUtility &)
 copy assignment operator which removes the observers in case of!
 
virtual ~ModelSubjectUtility ()=default
 DTOR.
 
void attachObserver (observer_type *observer)
 adda a observer to notify.
 
void detachObserver (observer_type *observer)
 remove a observer if in list.
 
 ModelSubjectUtility ()=default
 CTOR.
 
 ModelSubjectUtility (const ModelSubjectUtility &)
 copy CTOR which removes the observers in case of!
 
ModelSubjectUtilityoperator= (const ModelSubjectUtility &)
 copy assignment operator which removes the observers in case of!
 
virtual ~ModelSubjectUtility ()=default
 DTOR.
 
void attachObserver (observer_type *observer)
 adda a observer to notify.
 
void detachObserver (observer_type *observer)
 remove a observer if in list.
 
 ModelSubjectUtility ()=default
 CTOR.
 
 ModelSubjectUtility (const ModelSubjectUtility &)
 copy CTOR which removes the observers in case of!
 
ModelSubjectUtilityoperator= (const ModelSubjectUtility &)
 copy assignment operator which removes the observers in case of!
 
virtual ~ModelSubjectUtility ()=default
 DTOR.
 
void attachObserver (observer_type *observer)
 adda a observer to notify.
 
void detachObserver (observer_type *observer)
 remove a observer if in list.
 
- Public Member Functions inherited from ddl::dd::datamodel::InfoMap
 InfoMap ()=default
 CTOR.
 
 InfoMap (const InfoMap &)
 copy CTOR
 
 InfoMap (InfoMap &&)
 move CTOR
 
InfoMapoperator= (const InfoMap &)
 copy assignment operator
 
InfoMapoperator= (InfoMap &&)
 move assignment operator
 
template<typename INFO_T>
const INFO_T * getInfo () const
 Get the Info Pointer.
 
template<typename INFO_T>
INFO_T * getInfo ()
 Get the Info Pointer.
 
template<typename INFO_T>
void setInfo (const std::shared_ptr< INFO_T > &info)
 Set the Info object as shared pointer.
 

Additional Inherited Members

- Public Types inherited from ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >
typedef TypeAccessMapEventCode event_code_type
 local definition of the event code type
 
typedef T subject_type
 local definition of the subject type
 
typedef ModelObserverUtility< T, TypeAccessMapEventCodeobserver_type
 local definition of the observer type to notify
 
typedef TypeAccessMapEventCode event_code_type
 local definition of the event code type
 
typedef T subject_type
 local definition of the subject type
 
typedef ModelObserverUtility< T, TypeAccessMapEventCodeobserver_type
 local definition of the observer type to notify
 
typedef TypeAccessMapEventCode event_code_type
 local definition of the event code type
 
typedef T subject_type
 local definition of the subject type
 
typedef ModelObserverUtility< T, TypeAccessMapEventCodeobserver_type
 local definition of the observer type to notify
 
typedef TypeAccessMapEventCode event_code_type
 local definition of the event code type
 
typedef T subject_type
 local definition of the subject type
 
typedef ModelObserverUtility< T, TypeAccessMapEventCodeobserver_type
 local definition of the observer type to notify
 
- Protected Member Functions inherited from ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >
void notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)
 helper utility function to notify the current observers
 
void notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)
 helper utility function to notify the current observers
 
void notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)
 helper utility function to notify the current observers
 
void notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info)
 helper utility function to notify the current observers
 

Detailed Description

Datamodel property class used in Source, Target, Function.

Remarks
This class is observable within a ddl::dd::utility::TypeAccessMapSubject

Constructor & Destructor Documentation

◆ Property() [1/3]

ddl::mapping::datamodel::Property::Property ( const Property & other)

copy CTOR

Parameters
otherthe object to copy

◆ Property() [2/3]

ddl::mapping::datamodel::Property::Property ( Property && other)

move CTOR

Parameters
otherthe object to move

◆ Property() [3/3]

ddl::mapping::datamodel::Property::Property ( const std::string & name,
const std::string & value )

CTOR.

Parameters
namethe name of the property
valuethe value of the property

Member Function Documentation

◆ getName()

const std::string & ddl::mapping::datamodel::Property::getName ( ) const

Get the name.

Returns
const std::string&

◆ getValue()

const std::string & ddl::mapping::datamodel::Property::getValue ( ) const

Get the value.

Returns
const std::string&

◆ operator!=()

bool ddl::mapping::datamodel::Property::operator!= ( const Property & other) const

inequality operator

Parameters
otherthe other object to compare
Returns
true is not equal
false is equal

◆ operator=() [1/2]

Property & ddl::mapping::datamodel::Property::operator= ( const Property & other)

copy operator

Parameters
otherthe object to copy
Returns
Property&

◆ operator=() [2/2]

Property & ddl::mapping::datamodel::Property::operator= ( Property && other)

move operator

Parameters
otherthe object to copy
Returns
Property&

◆ operator==()

bool ddl::mapping::datamodel::Property::operator== ( const Property & other) const

equality operator

Parameters
otherthe other object to compare
Returns
true is equal
false is not equal

◆ setName()

void ddl::mapping::datamodel::Property::setName ( const std::string & name)

Set the name.

Parameters
namethe name
Remarks
This change is observable.

◆ setValue()

void ddl::mapping::datamodel::Property::setValue ( const std::string & value)

Set the value.

Parameters
valuethe value
Remarks
This change is observable.

The documentation for this class was generated from the following file: