|
| | DispatchingModuleInterface () |
| |
| virtual | ~DispatchingModuleInterface () |
| |
| virtual bool | Init (DispatchingModuleManager *manager)=0 |
| |
| virtual ds_string | GetName ()=0 |
| |
| virtual ds_string | GetVersion ()=0 |
| |
| void | Enable () |
| |
| void | Disable () |
| |
| bool | IsEnabled () const |
| |
| virtual void | RestartTimer (DS_Event &event) |
| |
| virtual bool | SendString (DS_Event &event, ds_string &sendString, bool &forceImmediateSending)=0 |
| |
| virtual bool | PostSendString (DS_Event &event, ds_string &sendString, ds_StringList &sendStringList, bool &forceImmediateSending)=0 |
| |
| | DispatchingModuleInterface () |
| |
| virtual | ~DispatchingModuleInterface () |
| |
| virtual bool | Init (DispatchingModuleManager *manager)=0 |
| |
| virtual ds_string | GetName ()=0 |
| |
| virtual ds_string | GetVersion ()=0 |
| |
| void | Enable () |
| |
| void | Disable () |
| |
| bool | IsEnabled () const |
| |
| virtual void | RestartTimer (DS_Event &event) |
| |
| virtual bool | SendString (DS_Event &event, ds_string &sendString, bool &forceImmediateSending)=0 |
| |
| virtual bool | PostSendString (DS_Event &event, ds_string &sendString, ds_StringList &sendStringList, bool &forceImmediateSending)=0 |
| |
Interface class for all modules of dispatching system.
- Note
- It IS required to rebuild all plugins, when this class is modified incompatible way.
- Author
- Stanislav Piecka
| virtual bool DispatchingModuleInterface::PostSendString |
( |
DS_Event & |
event, |
|
|
ds_string & |
sendString, |
|
|
ds_StringList & |
sendStringList, |
|
|
bool & |
forceImmediateSending |
|
) |
| |
|
pure virtual |
Pure virtual method allows to append some data to sendString which was prepared/modified by plugin in SendString method. This method is implemented in ancestor.
- Parameters
-
| event | occurent event to be handled |
| sendString | modified string by plugin |
| forceImmediateSending | plugin can set this to true to ensure immediate sending message to dispatching |
- Returns
- true when all went OK, false otherwise.
Implemented in DS_Messages, DS_Monitoring, DS_Events, DS_Delays, DS_Distance, DS_Gps, DS_Passengers, DS_Reservation, DS_System, and DS_CAN_Value.
| virtual bool DispatchingModuleInterface::PostSendString |
( |
DS_Event & |
event, |
|
|
ds_string & |
sendString, |
|
|
ds_StringList & |
sendStringList, |
|
|
bool & |
forceImmediateSending |
|
) |
| |
|
pure virtual |
Pure virtual method allows to append some data to sendString which was prepared/modified by plugin in SendString method. This method is implemented in ancestor.
- Parameters
-
| event | occurent event to be handled |
| sendString | modified string by plugin |
| forceImmediateSending | plugin can set this to true to ensure immediate sending message to dispatching |
- Returns
- true when all went OK, false otherwise.
Implemented in DS_Messages, DS_Monitoring, DS_Events, DS_Delays, DS_Distance, DS_Gps, DS_Passengers, DS_Reservation, DS_System, and DS_CAN_Value.
| virtual bool DispatchingModuleInterface::SendString |
( |
DS_Event & |
event, |
|
|
ds_string & |
sendString, |
|
|
bool & |
forceImmediateSending |
|
) |
| |
|
pure virtual |
Pure virtual method handles sending request. String is prepared (modified) by plugin depending on occured event and it's configuration. This method is implemented in ancestor.
- Parameters
-
| event | occurent event to be handled |
| sendString | modified string by plugin |
| forceImmediateSending | plugin can set this to true to ensure immediate sending message to dispatching |
- Returns
- true when all went OK, false otherwise.
Implemented in DS_Messages, DS_Monitoring, DS_Events, DS_Delays, DS_Distance, DS_Gps, DS_Passengers, DS_Reservation, DS_System, and DS_CAN_Value.
| virtual bool DispatchingModuleInterface::SendString |
( |
DS_Event & |
event, |
|
|
ds_string & |
sendString, |
|
|
bool & |
forceImmediateSending |
|
) |
| |
|
pure virtual |
Pure virtual method handles sending request. String is prepared (modified) by plugin depending on occured event and it's configuration. This method is implemented in ancestor.
- Parameters
-
| event | occurent event to be handled |
| sendString | modified string by plugin |
| forceImmediateSending | plugin can set this to true to ensure immediate sending message to dispatching |
- Returns
- true when all went OK, false otherwise.
Implemented in DS_Messages, DS_Monitoring, DS_Events, DS_Delays, DS_Distance, DS_Gps, DS_Passengers, DS_Reservation, DS_System, and DS_CAN_Value.