ADTF
Loading...
Searching...
No Matches
object_info_intf.h
Go to the documentation of this file.
1
7
8#ifndef _ADTF_UCOM_ANT_OBJECT_INFO_INTERFACE_INCLUDES_HEADER_
9#define _ADTF_UCOM_ANT_OBJECT_INFO_INTERFACE_INCLUDES_HEADER_
10
11namespace adtf
12{
13namespace ucom
14{
15namespace ant
16{
17
22class DOEXPORT IObjectInfo : public IClassInfo
23{
24public:
29 ADTF_IID(IObjectInfo, "object_info.ant.ucom.adtf.iid");
30
31public:
41 virtual void SetOID(const char* strName) = 0;
42
50 virtual const char* GetOID() const = 0;
51
52
53
54protected:
56 ~IObjectInfo() = default;
57};
58
59}//namespace ant
60
63
64#define ADTF_OBJECT_INFO_IMPL(_variable_) \
65 adtf::util::cString _variable_; \
66 void SetOID(const char* strOID) override \
67 { \
68 _variable_ = strOID; \
69 } \
70 const char* GetOID() const override \
71 { \
72 return _variable_.GetPtr(); \
73 } \
74
75
76
77
78}//namespace ucom
79}//namespace adtf
80
81#endif //_ADTF_UCOM_ANT_OBJECT_INFO_INTERFACE_INCLUDES_HEADER_
Definition class_info_intf.h:51
Definition object_info_intf.h:23
~IObjectInfo()=default
Protected destructor --> Only the final implementation can be destroyed!
virtual void SetOID(const char *strName)=0
ADTF_IID(IObjectInfo, "object_info.ant.ucom.adtf.iid")
virtual const char * GetOID() const =0
Namespace for all functionality of the ADTF UCOM SDK provided since v3.0.
Definition test_runtime.h:14
Namespace for the ADTF uCOM SDK.
Definition adtf_system.h:324
ant::IObjectInfo IObjectInfo
Alias always bringing the latest version of ant::IObjectInfo into scope.
Definition object_info_intf.h:62
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14