27 #ifndef COSMO_COMPONENT_H
28 #define COSMO_COMPONENT_H
30 #include <Pt/Cosmo/Api.h>
31 #include <Pt/Cosmo/Enumerable.h>
41 class IComponentDeclaration;
117 #include <Pt/Cosmo/Component.tpp>
119 #include <Pt/Cosmo/IActivate.h>
120 #include <Pt/Cosmo/IConnect.h>
122 #endif // include guard
I * queryInterface()
Returns the interface or null if not available.
Core module.
Definition: Allocator.h:33
void init(const IComponentType *type, const IComponentDeclaration *decl)
Initializes the component.
Component base class.
Definition: Component.h:52
const char * classId() const
Returns the class ID.
Component interface query.
Definition: IComponentType.h:50
virtual ~Component()
Destructor.
Definition: Component.h:64
bool hasFeatureId(const char *featureId) const
Returns true if the given feature ID is implemented.
Component(const Component &)=delete
No copy constructor.
Component & operator=(const Component &)=delete
No copy assignment.
Component instance declaration.
Definition: IComponentDeclaration.h:45
virtual void onInitialize(const IComponentDeclaration &decl)
Called when the component is initialized.
Definition: Component.h:105