source:
orxonox.OLD/trunk/src/lib/network/synchronizeable.h
@
5919
Last change on this file since 5919 was 5822, checked in by bensch, 19 years ago | |
---|---|
File size: 617 bytes |
Rev | Line | |
---|---|---|
[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] | 12 | class Synchronizeable : virtual public BaseObject |
[5804] | 13 | { |
14 | public: | |
[5523] | 15 | |
[5804] | 16 | Synchronizeable(const char* name); |
17 | ~Synchronizeable(); | |
[5523] | 18 | |
[5806] | 19 | virtual void writeBytes(const byte* data, int length); |
20 | virtual int readBytes(byte* data) const; | |
21 | virtual void writeDebug() const; | |
22 | virtual void readDebug() const; | |
[5547] | 23 | |
[5804] | 24 | private: |
[5523] | 25 | |
[5804] | 26 | int uniqueID; |
[5547] | 27 | |
[5804] | 28 | }; |
[5548] | 29 | #endif /* _SYNCHRONIZEABLE_H */ |
Note: See TracBrowser
for help on using the repository browser.