|
Dev Essential
|
observable KeyValuePair More...
#include <datamodel_keyvalue.h>
Inherits ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >, and ddl::dd::datamodel::InfoMap.
Public Member Functions | |
| KeyValuePair ()=default | |
| Construct a observable new Key Value Pair. | |
| KeyValuePair (const KeyValuePair &)=default | |
| copy CTOR | |
| KeyValuePair (KeyValuePair &&)=default | |
| move CTOR | |
| KeyValuePair & | operator= (const KeyValuePair &)=default |
| copy assignment operator | |
| KeyValuePair & | operator= (KeyValuePair &&)=default |
| move assignment operator | |
| KeyValuePair (std::string name_key, std::string value_type) | |
| CTOR. | |
| virtual | ~KeyValuePair ()=default |
| DTOR. | |
| bool | operator== (const KeyValuePair &other) const |
| equality operator. | |
| bool | operator!= (const KeyValuePair &other) const |
| non-equality operator. | |
| const std::string & | getName () const |
| Get the Name (same as key) | |
| void | setName (const std::string &name) |
| Sets the Name (same as key) | |
| const std::string & | getKey () const |
| Get the Key (same as name) | |
| void | setKey (const std::string &key) |
| Set the Key (same as name) | |
| const std::string & | getValue () const |
| Get the value (same as type) | |
| void | setValue (const std::string &value) |
| Set the Value (same as type) | |
| const std::string & | getType () const |
| Get the Type (same as value) | |
| void | setType (const std::string &type) |
| Set the Type (same as 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! | |
| ModelSubjectUtility & | operator= (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! | |
| ModelSubjectUtility & | operator= (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! | |
| ModelSubjectUtility & | operator= (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! | |
| ModelSubjectUtility & | operator= (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 | |
| InfoMap & | operator= (const InfoMap &) |
| copy assignment operator | |
| InfoMap & | operator= (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, TypeAccessMapEventCode > | observer_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, TypeAccessMapEventCode > | observer_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, TypeAccessMapEventCode > | observer_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, TypeAccessMapEventCode > | observer_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 | |
observable KeyValuePair
| ddl::dd::datamodel::KeyValuePair::KeyValuePair | ( | std::string | name_key, |
| std::string | value_type ) |
CTOR.
| name_key | The name or key of the pair. |
| value_type | The value or type of the pair. |
| const std::string & ddl::dd::datamodel::KeyValuePair::getKey | ( | ) | const |
Get the Key (same as name)
| const std::string & ddl::dd::datamodel::KeyValuePair::getName | ( | ) | const |
Get the Name (same as key)
| const std::string & ddl::dd::datamodel::KeyValuePair::getType | ( | ) | const |
Get the Type (same as value)
| const std::string & ddl::dd::datamodel::KeyValuePair::getValue | ( | ) | const |
Get the value (same as type)
| bool ddl::dd::datamodel::KeyValuePair::operator!= | ( | const KeyValuePair & | other | ) | const |
non-equality operator.
| other | the other key valu to compare |
|
default |
copy assignment operator
|
default |
move assignment operator
| bool ddl::dd::datamodel::KeyValuePair::operator== | ( | const KeyValuePair & | other | ) | const |
equality operator.
| other | the other key valu to compare |
| void ddl::dd::datamodel::KeyValuePair::setKey | ( | const std::string & | key | ) |
Set the Key (same as name)
| key | the key |
| Each | change may throw if a value with this key already exists. |
| void ddl::dd::datamodel::KeyValuePair::setName | ( | const std::string & | name | ) |
Sets the Name (same as key)
| name | the name to set |
| Each | change may throw if a value with this name already exists. |
| void ddl::dd::datamodel::KeyValuePair::setType | ( | const std::string & | type | ) |
Set the Type (same as value)
| type | the type to set. |
| void ddl::dd::datamodel::KeyValuePair::setValue | ( | const std::string & | value | ) |
Set the Value (same as type)
| value | the value |