AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
DispatchingModuleInterface Class Referenceabstract

Interface class for all modules of dispatching system. More...

#include <DispatchingModuleInterface.h>

Inheritance diagram for DispatchingModuleInterface:
Inheritance graph
[legend]

Public Member Functions

 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
 

Detailed Description

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

Constructor & Destructor Documentation

INTERNAL DispatchingModuleInterface::DispatchingModuleInterface ( )
Returns
DispatchingModuleInterface::~DispatchingModuleInterface ( )
virtual
Returns
DispatchingModuleInterface::DispatchingModuleInterface ( )
Returns
virtual DispatchingModuleInterface::~DispatchingModuleInterface ( )
virtual
Returns

Member Function Documentation

void DispatchingModuleInterface::Disable ( )

Method disables plugin.

Note
Value is changed also in Init function.

Here is the caller graph for this function:

void DispatchingModuleInterface::Disable ( )

Method disables plugin.

Note
Value is changed also in Init function.
void DispatchingModuleInterface::Enable ( )

Method enables plugin.

Note
Value is changed also in Init function.

Here is the caller graph for this function:

void DispatchingModuleInterface::Enable ( )

Method enables plugin.

Note
Value is changed also in Init function.
virtual ds_string DispatchingModuleInterface::GetName ( )
pure virtual

Pure virtual method returns name of plugin. This method is implemented in ancestor.

Note
value is valid after Init function is called.
Returns
name of plugin

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 ds_string DispatchingModuleInterface::GetName ( )
pure virtual

Pure virtual method returns name of plugin. This method is implemented in ancestor.

Note
value is valid after Init function is called.
Returns
name of plugin

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 ds_string DispatchingModuleInterface::GetVersion ( )
pure virtual

Pure virtual method returns version of plugin in form to be sent. This method is implemented in ancestor.

Note
value is valid after Init function is called.
Returns
version of plugin

Implemented in DS_Messages, DS_Monitoring, DS_Events, DS_Delays, DS_Distance, DS_Gps, DS_Passengers, DS_Reservation, DS_System, and DS_CAN_Value.

Here is the caller graph for this function:

virtual ds_string DispatchingModuleInterface::GetVersion ( )
pure virtual

Pure virtual method returns version of plugin in form to be sent. This method is implemented in ancestor.

Note
value is valid after Init function is called.
Returns
version of plugin

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::Init ( DispatchingModuleManager manager)
pure virtual

Pure virtual method reads configuration file and initializes plugin.

Returns
true when configuration has been successfully loaded, 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.

Here is the caller graph for this function:

virtual bool DispatchingModuleInterface::Init ( DispatchingModuleManager manager)
pure virtual

Pure virtual method reads configuration file and initializes plugin.

Returns
true when configuration has been successfully loaded, 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.

bool DispatchingModuleInterface::IsEnabled ( ) const

Method returns status of plugin.

Note
Value is valid after Init or Enable or Disable function is called.
Returns
true when plugin is currently enabled, false otherwise

Here is the caller graph for this function:

bool DispatchingModuleInterface::IsEnabled ( ) const

Method returns status of plugin.

Note
Value is valid after Init or Enable or Disable function is called.
Returns
true when plugin is currently enabled, false otherwise
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
eventoccurent event to be handled
sendStringmodified string by plugin
forceImmediateSendingplugin 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.

Here is the caller graph for this function:

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
eventoccurent event to be handled
sendStringmodified string by plugin
forceImmediateSendingplugin 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 void DispatchingModuleInterface::RestartTimer ( DS_Event event)
virtual

Method ask to restart timer of plugin, if plugin should restart it's timer on such event.

Parameters
eventevent generating restart timer request

Reimplemented in DS_Gps.

void DispatchingModuleInterface::RestartTimer ( DS_Event event)
virtual

Method ask to restart timer of plugin, if plugin should restart it's timer on such event.

Parameters
eventevent generating restart timer request

Reimplemented in DS_Gps.

Here is the caller graph for this function:

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
eventoccurent event to be handled
sendStringmodified string by plugin
forceImmediateSendingplugin 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.

Here is the caller graph for this function:

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
eventoccurent event to be handled
sendStringmodified string by plugin
forceImmediateSendingplugin 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.


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