27 #ifndef COSMO_COMPONENT_INFO_H
28 #define COSMO_COMPONENT_INFO_H
30 #include <Pt/Cosmo/Api.h>
31 #include <Pt/Cosmo/IComponentPlugin.h>
32 #include <Pt/Cosmo/IComponentDeclaration.h>
33 #include <Pt/Cosmo/IComponentStatus.h>
34 #include <Pt/Cosmo/IEnumerable.h>
42 class IDependencyInfo;
130 return _plugin->
mode();
158 return _plugin->
info();
185 #endif // include guard
Core module.
Definition: Allocator.h:33
const IEnumerable< IDependencyInfo > & dependencies() const
Returns the dependency information for this component.
Definition: IComponentStatus.h:56
const IComponentStatus * status() const
Returns the component status.
Definition: ComponentInfo.h:113
const IEnumerable< const char * > & featureIds() const
Returns the implemented feature IDs.
Definition: ComponentInfo.h:142
const IComponentPlugin * plugin() const
Returns the plugin.
Definition: ComponentInfo.h:99
Component information holder.
Definition: ComponentInfo.h:53
ComponentInfo(IComponentPlugin *plugin, IComponentDeclaration *decl, IComponentStatus *status)
Constructor.
Definition: ComponentInfo.h:61
ComponentMode mode() const
Returns the component mode.
Definition: ComponentInfo.h:128
ComponentInfo(const ComponentInfo &)=delete
No copy constructor.
Component plugin interface.
Definition: IComponentPlugin.h:51
const IComponentDeclaration * declaration() const
Returns the instance declaration.
Definition: ComponentInfo.h:106
bool hasFeatureId(const char *featureId) const
Returns true if feature ID is implemented.
Definition: ComponentInfo.h:135
Component status interface.
Definition: IComponentStatus.h:47
bool hasFeatureId(const char *featureId) const
Returns true if the given feature ID is implemented.
Definition: IComponentType.h:116
const char * classId() const
Returns the class ID of the component.
Definition: IComponentType.h:128
void assign(IComponentPlugin *plugin, IComponentDeclaration *decl, IComponentStatus *status)
Reassigns the component information.
Definition: ComponentInfo.h:88
const char * classId() const
Returns the class ID.
Definition: ComponentInfo.h:149
const char * info() const
Returns the info text.
Definition: ComponentInfo.h:156
const char * instanceId() const
Returns the instance ID of the component.
Definition: IComponentDeclaration.h:54
const IEnumerable< IDependencyInfo > & dependencies() const
Returns info about the dependencies.
Definition: ComponentInfo.h:170
const char * info() const
Returns the info string of the component.
Definition: IComponentPlugin.h:136
Component flags.
Definition: ComponentMode.h:45
Component instance declaration.
Definition: IComponentDeclaration.h:45
const IEnumerable< const char * > & featureIds() const
Returns the implemented feature IDs.
Definition: IComponentType.h:122
const char * instanceId() const
Returns the instance ID.
Definition: ComponentInfo.h:163
bool hasInterface() const
Returns true if interface is available.
Definition: ComponentInfo.h:121
ComponentInfo & operator=(const ComponentInfo &)=delete
No copy assignment.
bool hasInterface() const
Returns true if the interface is implemented.
Definition: IComponentType.h:135
ComponentMode mode() const
Returns the component mode.
Definition: IComponentPlugin.h:130
virtual ~ComponentInfo()
Destructor.
Definition: ComponentInfo.h:75