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);
virtual Component * onQuery(const std::string &featureId) const =0
Gets the component by feature ID or null if not available.
I * queryInterface()
Returns the interface or null if not available.
Core module.
Definition: Allocator.h:33
Dependency resolver.
Definition: IActivator.h:50
IActivator()
Constructor.
Definition: IActivator.h:54
Component base class.
Definition: Component.h:52
virtual ~IActivator()
Destructor.
Definition: IActivator.h:60
Component * query(const std::string &featureId) const
Returns the component by feature ID or null.
Definition: IActivator.h:128
Component * get(const std::string &featureId) const
Returns the component by feature ID or throws.
Definition: IActivator.h:105