ComponentInfo Class Reference

#include <Pt/Cosmo/ComponentInfo.h>

Component information holder. More...

Public Member Functions

 ComponentInfo (IComponentPlugin *plugin, IComponentDeclaration *decl, IComponentStatus *status)
 Constructor. More...
 
 ComponentInfo (const ComponentInfo &)=delete
 No copy constructor.
 
virtual ~ComponentInfo ()
 Destructor.
 
ComponentInfooperator= (const ComponentInfo &)=delete
 No copy assignment.
 
void assign (IComponentPlugin *plugin, IComponentDeclaration *decl, IComponentStatus *status)
 Reassigns the component information. More...
 
const IComponentPluginplugin () const
 Returns the plugin.
 
const IComponentDeclarationdeclaration () const
 Returns the instance declaration.
 
const IComponentStatusstatus () const
 Returns the component status.
 
template<typename I >
bool hasInterface () const
 Returns true if interface is available.
 
ComponentMode mode () const
 Returns the component mode.
 
bool hasFeatureId (const char *featureId) const
 Returns true if feature ID is implemented.
 
const IEnumerable< const char * > & featureIds () const
 Returns the implemented feature IDs.
 
const char * classId () const
 Returns the class ID.
 
const char * info () const
 Returns the info text.
 
const char * instanceId () const
 Returns the instance ID.
 
const IEnumerable< IDependencyInfo > & dependencies () const
 Returns info about the dependencies.
 

Detailed Description

Aggregates the plugin, instance declaration, and status for a registered component. Used by IComponentManager to enumerate component metadata.

Constructor & Destructor Documentation

◆ ComponentInfo()

ComponentInfo ( IComponentPlugin plugin,
IComponentDeclaration decl,
IComponentStatus status 
)
Parameters
pluginThe component plugin.
declThe instance declaration.
statusThe component status.

Member Function Documentation

◆ assign()

void assign ( IComponentPlugin plugin,
IComponentDeclaration decl,
IComponentStatus status 
)
Parameters
pluginThe component plugin.
declThe instance declaration.
statusThe component status.