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