|
NEOCCA bindings Specification
0.2.8
|
Component object model that all Components wishing to use the boost/STL-based memory model must use. More...
#include <Component.hh>
Public Member Functions | |
| virtual | ~Component () |
| obligatory virtual destructor More... | |
| virtual void | setServices (Services *cc)=0 throw (Exception ) |
| The component's containing framework provides services through the Services interface. More... | |
Component object model that all Components wishing to use the boost/STL-based memory model must use.
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.
1.8.13