Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/network/synchronizeable.h @ 5804

Last change on this file since 5804 was 5804, checked in by patrick, 18 years ago

network: changed the synchronizeable interface, since the data synchronizeables, more debug output

File size: 678 bytes
RevLine 
[5523]1/*!
2 * @file connection_monitor.h
[5550]3    \brief interface for all classes that have to be synchronized
[5547]4 */
[5523]5
[5547]6#ifndef _SYNCHRONIZEABLE_H
7#define _SYNCHRONIZEABLE_H
[5523]8
[5548]9#include <base_object.h>
[5547]10#include "netdefs.h"
11
[5581]12class Synchronizeable : virtual public BaseObject
[5804]13  {
14  public:
[5523]15
[5804]16    Synchronizeable(const char* name);
17    ~Synchronizeable();
[5523]18
[5804]19    virtual void      writeBytes(byte* data, int length);
20    virtual int       readBytes(byte* data);
21    virtual void      writeDebug();
22    virtual void      readDebug();
[5547]23
[5804]24    inline const char* getName() { return this->name; }
[5547]25
[5804]26  private:
[5523]27
[5804]28    int               uniqueID;
29    const char*       name;
[5547]30
[5804]31  };
[5548]32#endif /* _SYNCHRONIZEABLE_H */
Note: See TracBrowser for help on using the repository browser.