IComponentDeclaration.h
1
26
27#ifndef COSMO_COMPONENT_DECLARATION_INTERFACE_H
28#define COSMO_COMPONENT_DECLARATION_INTERFACE_H
29
30#include <Pt/Cosmo/Api.h>
31
32namespace Pt {
33
34namespace 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
Component instance declaration.
Definition IComponentDeclaration.h:45
const char * instanceId() const
Returns the instance ID of the component.
Definition IComponentDeclaration.h:54
virtual ~IComponentDeclaration()
Destructor.
Definition IComponentDeclaration.h:49
const char * require() const
Returns the module requirement string.
Definition IComponentDeclaration.h:61
Cosmo Component Model.
Definition Api.h:53
Core module.
Definition Allocator.h:33