/*! * @file connection_monitor.h \brief interface for all classes that have to be synchronized */ #ifndef _SYNCHRONIZEABLE_H #define _SYNCHRONIZEABLE_H #include #include "netdefs.h" class Synchronizeable : virtual public BaseObject { public: Synchronizeable(const char* name); ~Synchronizeable(); virtual void writeBytes(byte* data, int length); virtual int readBytes(byte* data); virtual void writeDebug(); virtual void readDebug(); inline const char* getName() { return this->name; } private: int uniqueID; const char* name; }; #endif /* _SYNCHRONIZEABLE_H */