Inheritance diagram for smtk::service:

Public Member Functions | |
| int | get_file_descriptor (void) |
| get file descriptor | |
| virtual void | interupt (void) |
| unblock the wait() call | |
| bool | is_invalid (void) const |
| see if the object is invalid | |
| bool | is_valid (void) const |
| see if the object is valid | |
| virtual int | serve (void)=0 |
| give service | |
| service (void) | |
| virtual int | wait (void) |
| wait for service | |
| virtual | ~service (void) |
Protected Member Functions | |
| template<class T> | |
| T | invalidate (T t) |
| invalidate the object | |
| void | invalidate (void) |
| invalidate the object | |
| template<class T> | |
| T | validate (T t) |
| validate the object | |
| void | validate (void) |
| validate the object | |
Protected Attributes | |
| int | fd |
| service file descriptor | |
This defines the server to service interface for SmTk service modules (plug-ins). The SmTk server (smtk_server) can load dynamic shared objects that contain the C++ smtk::service class objects. A class that inherits this class must call validate() in order to let the server know that this is a usable service, otherwise the service will be deleted by the server.
| service::service | ( | void | ) |
This will not validate the object.
| service::~service | ( | void | ) | [virtual] |
virtual destructor of this pure virtual class.
| int smtk::service::get_file_descriptor | ( | void | ) | [inline] |
| void service::interupt | ( | void | ) | [virtual] |
| T smtk::validation::invalidate | ( | T | t | ) | [inline, protected, inherited] |
invalidate the object
Make the object invalid.
| void smtk::validation::invalidate | ( | void | ) | [inline, protected, inherited] |
invalidate the object
Make the object invalid.
| bool smtk::validation::is_invalid | ( | void | ) | const [inline, inherited] |
see if the object is invalid
| bool smtk::validation::is_valid | ( | void | ) | const [inline, inherited] |
see if the object is valid
| virtual int smtk::service::serve | ( | void | ) | [pure virtual] |
| T smtk::validation::validate | ( | T | t | ) | [inline, protected, inherited] |
validate the object
Make the object valid.
| void smtk::validation::validate | ( | void | ) | [inline, protected, inherited] |
validate the object
Make the object valid.
| int service::wait | ( | void | ) | [virtual] |
int smtk::service::fd [protected] |
1.5.2