The helper class should contain all mechanisms for connecting and disconnecting the system, along with any updates that need to run.
Definition at line 47 of file CommsHelper.H.
Public Member Functions | |
CommsHelper (const std::string &name) | |
virtual | ~CommsHelper () |
void | setName (const char *name) |
Set the name of this module. | |
const std::string | getName () |
Return the name of this module. | |
virtual int | initialize (int argc, char *argv[], const bool &override)=0 |
Initialize the communication adaptor. | |
virtual const Protocols | getProtocol ()=0 |
Returns the protocol handled by this helper (see CommsManager). | |
virtual COMBase * | getCOMBase (const std::string interfacetype, const std::string objectName)=0 |
virtual void | runUpdate ()=0 |
Run the update loop of the adaptor. | |
virtual void | disconnect ()=0 |
Clean up the adaptor and disconnect. | |
virtual void | closeConnections ()=0 |
Protected Attributes | |
std::string | m_name |
Name of this module. | |
unsigned int * | m_supplyCounters |
Number of suppliers of each data type. | |
unsigned int * | m_counters |
Number of consumers of each data type. | |
unsigned int | m_numCounters |
Length of the counter arrays. | |
std::vector< Capability * > * | objectList |
CommsHelper | ( | const std::string & | name | ) | [inline] |
virtual ~CommsHelper | ( | ) | [inline, virtual] |
Definition at line 53 of file CommsHelper.H.
void setName | ( | const char * | name | ) | [inline] |
Set the name of this module.
Definition at line 58 of file CommsHelper.H.
References CommsHelper::m_name.
Referenced by CommsManager::setName().
const std::string getName | ( | ) | [inline] |
Return the name of this module.
Definition at line 62 of file CommsHelper.H.
References CommsHelper::m_name.
virtual int initialize | ( | int | argc, | |
char * | argv[], | |||
const bool & | override | |||
) | [pure virtual] |
Initialize the communication adaptor.
override | The override parameter allows the adaptor to punt other modules that have the same name. |
Referenced by CommsManager::initialize().
virtual const Protocols getProtocol | ( | ) | [pure virtual] |
Returns the protocol handled by this helper (see CommsManager).
virtual COMBase* getCOMBase | ( | const std::string | interfacetype, | |
const std::string | objectName | |||
) | [pure virtual] |
Referenced by CommsManager::registerObject().
virtual void runUpdate | ( | ) | [pure virtual] |
Run the update loop of the adaptor.
Referenced by CommsManager::cleanUp(), and CommsManager::runUpdate().
virtual void disconnect | ( | ) | [pure virtual] |
virtual void closeConnections | ( | ) | [pure virtual] |
Referenced by CommsManager::closeConnections().
std::string m_name [protected] |
Name of this module.
Definition at line 92 of file CommsHelper.H.
Referenced by CommsHelper::CommsHelper(), CommsHelper::getName(), and CommsHelper::setName().
unsigned int* m_supplyCounters [protected] |
unsigned int* m_counters [protected] |
unsigned int m_numCounters [protected] |
std::vector< Capability * >* objectList [protected] |
Definition at line 107 of file CommsHelper.H.