27#ifndef COSMO_ACTIVATOR_INTERFACE_H
28#define COSMO_ACTIVATOR_INTERFACE_H
30#include <Pt/Cosmo/Api.h>
74 I*
get(
const std::string&
id)
const;
87 I*
query(
const std::string&
id)
const;
99#include <Pt/Cosmo/Component.h>
109 throw std::invalid_argument(featureId);
122 throw std::invalid_argument(featureId);
Component base class.
Definition Component.h:52
I * queryInterface()
Returns the interface or null if not available.
Component * query(const std::string &featureId) const
Returns the component by feature ID or null.
Definition IActivator.h:128
IActivator()
Constructor.
Definition IActivator.h:54
Component * get(const std::string &featureId) const
Returns the component by feature ID or throws.
Definition IActivator.h:105
virtual ~IActivator()
Destructor.
Definition IActivator.h:60
virtual Component * onQuery(const std::string &featureId) const =0
Gets the component by feature ID or null if not available.
Cosmo Component Model.
Definition Api.h:53
Core module.
Definition Allocator.h:33