Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DriverMessaging::Message Class Reference

Base class for all driver messages, this subclasses XMLLoadSave in case we want to serialize for messages from non-threaded (full multi-process) IPC, or offboard computation. More...

#include <DriverMessaging.h>

Inheritance diagram for DriverMessaging::Message:

Detailed Description

Base class for all driver messages, this subclasses XMLLoadSave in case we want to serialize for messages from non-threaded (full multi-process) IPC, or offboard computation.

TODO not implemented for non-threaded IPC, assuming shared memory space... the 'Multiprocess' mode will probably be deprecated before this matters

Definition at line 50 of file DriverMessaging.h.

List of all members.

Public Member Functions

 Message (const Message &m)
 Copy constructor.
Messageoperator= (const Message &m)
 Assignment operator.
virtual ~Message ()=0
 Destructor.

Public Attributes

const char *const CLASS_NAME
 Each class should supply a name so they can be identified more easily, this is assigned via the protected constructor.

Protected Member Functions

 Message (const char *const className)
 Constructor to be used by subclasses (there is no public constructor, this is an abstract class).

Constructor & Destructor Documentation

DriverMessaging::Message::Message ( const char *const   className  )  [explicit, protected]

Constructor to be used by subclasses (there is no public constructor, this is an abstract class).

The className argument is used to initialize CLASS_NAME, the pointer address should be static, used for fast class comparisons

Definition at line 54 of file DriverMessaging.h.

DriverMessaging::Message::Message ( const Message m  ) 

Copy constructor.

Definition at line 62 of file DriverMessaging.h.

DriverMessaging::Message::~Message (  )  [pure virtual]

Destructor.

Definition at line 14 of file DriverMessaging.cc.


Member Function Documentation

Message& DriverMessaging::Message::operator= ( const Message m  ) 

Assignment operator.

Definition at line 65 of file DriverMessaging.h.


Member Data Documentation

Each class should supply a name so they can be identified more easily, this is assigned via the protected constructor.

Do we need this? Not sure why I added this vs. using RTTI and typeinfo/typeid stuff

Definition at line 59 of file DriverMessaging.h.


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:20 2016 by Doxygen 1.6.3