/home/fwph/code/wurde/rde/core/CommsHelper.H

Go to the documentation of this file.
00001 #ifndef _COMMS_HELPER_H
00002 #define _COMMS_HELPER_H
00003 
00023 #include <iostream>
00024 #include <string>
00025 #include <vector>
00026 #include <list>
00027 #include <time.h>
00028 #include <sys/time.h>
00029 #include <Capability.H>
00030 #include <COMObject.H>
00031 
00032 //$Id: CommsHelper.H 63 2007-01-18 21:39:32Z fwph $
00033 
00039 namespace WURDE{
00040         class Capability;
00041         
00047         class CommsHelper {
00048                 
00049         public:
00050                 
00051                 CommsHelper(const std::string & name){m_name=name;}
00052                 
00053                 virtual ~CommsHelper(){}
00054                 
00058                 void setName(const char *name){m_name=name;}
00062                 const std::string getName(){return m_name;}
00068                 virtual int initialize(int argc, char *argv[], const bool & override)=0;
00069                 
00073                 virtual const Protocols getProtocol()=0;
00074                 
00075                 virtual COMBase * getCOMBase(const std::string interfacetype, const std::string objectName)=0;
00076                 
00080                 virtual void runUpdate()=0;
00084                 virtual void disconnect()=0;
00085 
00086                 virtual void closeConnections()=0;
00087               
00088         protected:
00092                 std::string m_name;
00093                 
00097                 unsigned int *m_supplyCounters;
00101                 unsigned int *m_counters;
00105                 unsigned int m_numCounters;
00106                 
00107                 std::vector< Capability * > *objectList;
00108                 
00109         };
00110                 
00111         
00112 }
00113 #endif

Generated on Thu Feb 1 15:31:54 2007 for WURDE by  doxygen 1.5.1