ADTF
|
Default convenient implementation for INamedGraphObject. More...
Public Member Functions | |
named_graph_object () | |
CTOR. | |
virtual | ~named_graph_object ()=default |
DTOR. | |
named_graph_object (const char *strName) | |
CTOR with name. More... | |
tResult | SetName (const char *strName) override |
Sets the Name of the object. More... | |
tResult | GetName (base::ant::IString &&strName) const override |
Gets the Name of the object. More... | |
tResult | SetParent (const ucom::ant::IObject *poParentObject) override |
Sets Parent of the object. More... | |
tResult | GetParent (const ucom::ant::IObject *&poParentObject) const override |
Gets the Parent of the object. More... | |
Public Member Functions inherited from object< INamedGraphObject, INamedGraphObject > | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. More... | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. More... | |
void | Destroy () const override |
Destruct and deallocate instantiations of type IObject . More... | |
Public Member Functions inherited from IObject | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Protected Member Functions | |
named_graph_object (const named_graph_object &)=delete | |
delete copy CTOR | |
named_graph_object (named_graph_object &&)=delete | |
delete move CTOR | |
named_graph_object & | operator= (const named_graph_object &)=delete |
delete copy operator | |
named_graph_object & | operator= (named_graph_object &&)=delete |
delete move operator | |
void | LogNamedMessage (const char *strMessage) |
Helper to log a message with the full name of the object. More... | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Private Attributes | |
const ucom::ant::IObject * | m_pParent = nullptr |
parent of the named object | |
adtf_util::cString | m_strName |
name of the | |
Default convenient implementation for INamedGraphObject.
If your own type is derived from INamedGraphObject and you want to use this default implementation use the derived type as parameter Interface
to prevent multiple inheritance.
Interface | type that derives from INamedGraphObject. |
Definition at line 30 of file named_graph_object.h.
|
inline |
CTOR with name.
[in] | strName | Name of object |
Definition at line 56 of file named_graph_object.h.
|
inlineoverride |
Gets the Name of the object.
[in,out] | strName | Name of object |
Definition at line 74 of file named_graph_object.h.
References named_graph_object< INTERFACE >::m_strName, and RETURN_NOERROR.
|
inlineoverride |
Gets the Parent of the object.
[out] | poParentObject | Parent of object returned |
ERR_NOT_INITIALIZED | No Parent set. |
Definition at line 97 of file named_graph_object.h.
References named_graph_object< INTERFACE >::m_pParent, RETURN_ERROR, and RETURN_NOERROR.
|
inlineprotected |
Helper to log a message with the full name of the object.
[in] | strMessage | Message to log |
Definition at line 116 of file named_graph_object.h.
References string_base< cStackString >::Format(), adtf::streaming::ant::get_named_graph_object_full_name(), and LOG_DUMP.
|
inlineoverride |
Sets the Name of the object.
[in] | strName | Name of object |
Definition at line 64 of file named_graph_object.h.
References named_graph_object< INTERFACE >::m_strName, and RETURN_NOERROR.
Referenced by binding_proxy< INTERFACE, INTERFACE_CHECK >::binding_proxy().
|
inlineoverride |
Sets Parent of the object.
[in] | poParentObject | Parent of object |
Definition at line 85 of file named_graph_object.h.
References named_graph_object< INTERFACE >::m_pParent, and RETURN_NOERROR.