#include <Pt/Cosmo/IComponentType.h>
Component interface query.
More...
Inherited by IComponentPlugin.
|
|
virtual | ~IComponentType () |
| | Destructor.
|
| |
| bool | hasFeatureId (const char *featureId) const |
| | Returns true if the given feature ID is implemented. More...
|
| |
|
const IEnumerable< const char * > & | featureIds () const |
| | Returns the implemented feature IDs.
|
| |
|
const char * | classId () const |
| | Returns the class ID of the component.
|
| |
|
template<typename I > |
| bool | hasInterface () const |
| | Returns true if the interface is implemented.
|
| |
| template<typename I > |
| I * | queryInterface (Component &c) const |
| | Returns the interface or null if not implemented. More...
|
| |
|
|
virtual bool | onHasFeatureId (const char *featureId) const =0 |
| | Returns true if the given feature ID is implemented.
|
| |
|
virtual const IEnumerable< const char * > & | onGetFeatureIds () const =0 |
| | Returns the implemented feature IDs.
|
| |
|
virtual const char * | onGetClassId () const =0 |
| | Returns the class ID of the component.
|
| |
|
virtual bool | onHasInterface (const std::type_info &ti) const =0 |
| | Returns true if the interface is implemented.
|
| |
|
virtual IUnknown * | onQueryInterface (Component &c, const std::type_info &ti) const =0 |
| | Returns the interface or null if the interface is not implemented.
|
| |
Provides runtime type information for a component, including feature ID lookup, interface presence checks, and interface retrieval via queryInterface().
◆ hasFeatureId()
| bool hasFeatureId |
( |
const char * |
featureId | ) |
const |
- Parameters
-
| featureId | The feature ID to check. |
◆ queryInterface()
- Parameters
-
| c | The component instance to query. |