Changeset 7459 in orxonox.OLD for branches/network/src/lib/network/synchronizeable_var/synchronizeable_float.cc
- Timestamp:
- Apr 30, 2006, 1:50:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable_var/synchronizeable_float.cc
r7444 r7459 16 16 17 17 #include "synchronizeable_float.h" 18 #include "converter.h" 18 19 19 20 … … 22 23 * @todo this constructor is not jet implemented - do it 23 24 */ 24 SynchronizeableFloat::SynchronizeableFloat( float * ptrIn, float * ptrOut, std::string name, int permission, int priority) : SynchronizeableVar( ptrIn, ptrOut, name, 0, permission, priority )25 SynchronizeableFloat::SynchronizeableFloat( float * ptrIn, float * ptrOut, std::string name, int permission, int priority) : SynchronizeableVar( ptrIn, ptrOut, name, FLOATSIZE, permission, priority ) 25 26 { 26 27 this->vPtrIn = ptrIn; … … 44 45 int SynchronizeableFloat::writeToBuf( byte * buf, int maxLength ) 45 46 { 46 #warning implement this 47 int res = Converter::floatToByteArray( *vPtrIn, buf, maxLength ); 48 49 assert( res == FLOATSIZE ); 50 51 return res; 47 52 } 48 53 … … 55 60 int SynchronizeableFloat::readFromBuf( byte * buf, int maxLength ) 56 61 { 57 #warning implement this 62 assert( maxLength >= FLOATSIZE ); 63 64 int res = Converter::byteArrayToFloat( buf, vPtrOut ); 65 66 assert( res == FLOATSIZE ); 67 68 return res; 58 69 }
Note: See TracChangeset
for help on using the changeset viewer.