Changeset 9386 in orxonox.OLD for branches/proxy/src/lib/network/synchronizeable_var/synchronizeable_string.h
- Timestamp:
- Jul 21, 2006, 1:41:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/synchronizeable_var/synchronizeable_string.h
r9347 r9386 4 4 */ 5 5 6 #include "synchronizeable_var/synchronizeable_var.h"7 #include "converter.h"8 9 6 #ifndef _SYNCHRONIZEABLE_STRING_H 10 7 #define _SYNCHRONIZEABLE_STRING_H 8 9 #include "synchronizeable_var.h" 11 10 12 11 #include <string> … … 17 16 SynchronizeableString( std::string * ptrIn, std::string * ptrOut, std::string name, int permission = PERMISSION_MASTER_SERVER, int priority = 0 ); 18 17 virtual ~SynchronizeableString(); 19 18 20 19 virtual int writeToBuf( byte * buf, int maxLength ); 21 20 virtual int readFromBuf( byte * buf, int maxLength ); 22 23 21 22 24 23 /** 25 24 * check if writeToBuf will return the same size every time … … 27 26 */ 28 27 virtual bool hasStaticSize(){ return false; }; 29 30 virtual int getSize() { return vPtrIn->length()+INTSIZE; }31 28 29 virtual int getSize(); 30 32 31 virtual int getSizeFromBuf( byte * buf, int maxLength ); 33 32 34 33 virtual void debug(); 35 34 36 35 private: 37 36 std::string * vPtrIn; //!< pointer to data (read)
Note: See TracChangeset
for help on using the changeset viewer.