- Timestamp:
- Nov 28, 2005, 7:36:02 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.cc
r5806 r5807 19 19 20 20 /** 21 \briefdefault constructor21 * default constructor 22 22 */ 23 23 Synchronizeable::Synchronizeable(const char* name) 24 24 { 25 this-> name = name;25 this->setName(name); 26 26 } 27 27 28 28 /** 29 \briefdefault destructor deletes all unneded stuff29 * default destructor deletes all unneded stuff 30 30 */ 31 31 Synchronizeable::~Synchronizeable() 32 { 32 {} 33 34 /** 35 * write data to NetworkStream 36 */ 37 void Synchronizeable::writeBytes(const byte* data, int length) 38 {} 39 40 /** 41 * read data from NetworkStream 42 */ 43 int Synchronizeable::readBytes(byte* data) const 44 {} 33 45 34 46 47 void Synchronizeable::writeDebug() const 48 {} 35 49 36 50 37 } 38 39 /** 40 \brief write data to NetworkStream 41 */ 42 void Synchronizeable::writeBytes(const byte* data, int length) 43 { 44 45 46 47 } 48 49 50 /** 51 \brief read data from NetworkStream 52 */ 53 int Synchronizeable::readBytes(byte* data) const 54 { 55 56 57 58 59 } 60 61 void Synchronizeable::writeDebug() const 62 { 63 64 } 65 66 void Synchronizeable::readDebug() const 67 { 68 69 70 71 72 } 51 void Synchronizeable::readDebug() const 52 {} -
branches/network/src/lib/network/synchronizeable.h
r5806 r5807 22 22 virtual void readDebug() const; 23 23 24 inline const char* getName() const { return this->name; }25 26 24 private: 27 25 28 26 int uniqueID; 29 const char* name;30 27 31 28 }; -
branches/network/src/subprojects/network/simple_sync.h
r5806 r5807 11 11 12 12 class SimpleSync : public Synchronizeable 13 {13 { 14 14 public: 15 15 SimpleSync(const char* name); … … 31 31 byte* outData; 32 32 int outLength; 33 };33 }; 34 34 35 35 #endif /* _SIMPLE_SYNC */ 36
Note: See TracChangeset
for help on using the changeset viewer.