neo::cca::ports::ServiceRegistry Class Reference

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>

Inheritance diagram for neo::cca::ports::ServiceRegistry:

Inheritance graph
[legend]
Collaboration diagram for neo::cca::ports::ServiceRegistry:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

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.


Constructor & Destructor Documentation

virtual neo::cca::ports::ServiceRegistry::~ServiceRegistry (  )  [inline, virtual]

00018 {}


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Mon Sep 14 18:33:38 2009 for NEOCCA bindings Specification by  doxygen 1.5.9