NEOCCA bindings Specification
0.2.8
|
NOT YET DEFINED IN CCA.SIDL: ServiceRegistry is a Port that is primordially provided by the framework and can be fished out by a component wishing to provide service Ports. More...
#include <ServiceRegistry.hh>
Public Member Functions | |
virtual | ~ServiceRegistry () |
virtual bool | addService (const std::string &type, ServiceProvider *portProvider)=0 |
Add a ServiceProvider that can be asked to produce service Port's for other components to use subsequently. | |
virtual bool | addSingletonService (const std::string &type, neo::cca::Port *service)=0 |
Add a "reusable" service gov.cca.Port for other components to use subsequently. | |
virtual void | removeService (const std::string &serviceType)=0 |
Inform the framework that this service Port is no longer to be used, subsequent to this call. |
NOT YET DEFINED IN CCA.SIDL: ServiceRegistry is a Port that is primordially provided by the framework and can be fished out by a component wishing to provide service Ports.
Each binding has to provide a wrapping of this Service.
virtual neo::cca::ports::ServiceRegistry::~ServiceRegistry | ( | ) | [inline, virtual] |
{}
virtual bool neo::cca::ports::ServiceRegistry::addService | ( | const std::string & | type, |
ServiceProvider * | portProvider | ||
) | [pure virtual] |
Add a ServiceProvider that can be asked to produce service Port's for other components to use subsequently.
True means success. False means that for some reason, the provider isn't going to function.
virtual bool neo::cca::ports::ServiceRegistry::addSingletonService | ( | const std::string & | type, |
neo::cca::Port * | service | ||
) | [pure virtual] |
Add a "reusable" service gov.cca.Port for other components to use subsequently.
virtual void neo::cca::ports::ServiceRegistry::removeService | ( | const std::string & | serviceType | ) | [pure virtual] |
Inform the framework that this service Port is no longer to be used, subsequent to this call.
This is likely to cause an exception unless all the ports obtained from the previously added services have been released and disconnected.