#include <yatesig.h>
Public Member Functions | |
virtual | ~SignallingComponent () |
virtual const String & | toString () const |
SignallingEngine * | engine () const |
Protected Member Functions | |
SignallingComponent (const char *name=0) | |
void | insert (SignallingComponent *component) |
virtual void | detach () |
virtual void | timerTick (const Time &when) |
void | setName (const char *name) |
Friends | |
class | SignallingEngine |
Interface to an abstract signalling component that is managed by an engine. The engine will periodically poll each component to keep them alive.
virtual ~SignallingComponent | ( | ) | [virtual] |
Destructor, detaches the engine and other components
SignallingComponent | ( | const char * | name = 0 |
) | [inline, protected] |
Constructor with a default empty component name
name | Name of this component |
virtual const String& toString | ( | ) | const [virtual] |
Get the component's name so it can be used for list searches
Reimplemented from GenObject.
SignallingEngine* engine | ( | ) | const [inline] |
Get the TelEngine::SignallingEngine that manages this component
void insert | ( | SignallingComponent * | component | ) | [protected] |
Insert another component in the same engine as this one. This method should be called for every component we attach.
component | Pointer to component to insert in engine |
virtual void detach | ( | ) | [protected, virtual] |
Detach this component from all its links - components and engine. Reimplement this method in all components that keep pointers to other components. The default implementation detaches from the engine.
virtual void timerTick | ( | const Time & | when | ) | [protected, virtual] |
Method called periodically by the engine to keep everything alive
when | Time to use as computing base for events and timeouts |
Reimplemented in SS7MTP2, SS7ISUP, ISDNQ921, ISDNQ921Pasive, ISDNQ931, and ISDNQ931Monitor.
void setName | ( | const char * | name | ) | [protected] |
Change the name of the component after it was constructed
name | Name of this component |