IComponentDeclaration.h
1 
27 #ifndef COSMO_COMPONENT_DECLARATION_INTERFACE_H
28 #define COSMO_COMPONENT_DECLARATION_INTERFACE_H
29 
30 #include <Pt/Cosmo/Api.h>
31 
32 namespace Pt {
33 
34 namespace Cosmo {
35 
45 {
46  public:
50  {}
51 
54  const char* instanceId() const
55  {
56  return onGetInstanceId();
57  }
58 
61  const char* require() const
62  {
63  return onGetRequire();
64  }
65 
66  protected:
67  virtual const char* onGetInstanceId() const = 0;
68 
69  virtual const char* onGetRequire() const = 0;
70 };
71 
72 } // namespace Cosmo
73 
74 } // namespace Pt
75 
76 #endif // include guard
Core module.
Definition: Allocator.h:33
const char * require() const
Returns the module requirement string.
Definition: IComponentDeclaration.h:61
virtual ~IComponentDeclaration()
Destructor.
Definition: IComponentDeclaration.h:49
const char * instanceId() const
Returns the instance ID of the component.
Definition: IComponentDeclaration.h:54
Component instance declaration.
Definition: IComponentDeclaration.h:45