neo::cca::Component Class Reference

Component object model that all Components wishing to use the boost/STL-based memory model must use. More...

#include <Component.hh>

List of all members.

Public Member Functions

virtual ~Component ()
 obligatory virtual destructor
virtual void setServices (Services *cc)=0 throw (Exception )
 The component's containing framework provides services through the Services interface.


Detailed Description

Component object model that all Components wishing to use the boost/STL-based memory model must use.

Constructor & Destructor Documentation

virtual neo::cca::Component::~Component (  )  [inline, virtual]

obligatory virtual destructor

00015 {}


Member Function Documentation

virtual void neo::cca::Component::setServices ( Services cc  )  throw (Exception ) [pure virtual]

The component's containing framework provides services through the Services interface.

The Component instance will be called first with some non-0 (non-null) Services object. In order to do anything substantial as a component, the component will need to keep a copy of this pointer.

If the cc passed on the first call to setServices is 0/null, the component is free to ignore it or to throw an exception.

The next time that setServices is called, the argument cc will be 0/null, and that is the signal that the component should shut itself down. Shutdown is: releasing used ports. unregistering uses ports. removing provided ports. deallocating any other resources that are not released by the destructor function.

A second call to setServices with a non-0 cc that is made before a shutdown call (0 cc) is received is a framework error. The component is free to ignore it or to throw an exception.


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

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