Changeset 6634 in orxonox.OLD for trunk/src/lib/network/converter.h
- Timestamp:
- Jan 21, 2006, 1:18:19 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/converter.h
r6341 r6634 9 9 /* include this file, it contains some default definitions */ 10 10 #include "netdefs.h" 11 11 12 12 13 /* include base_object.h since all classes are derived from this one */ … … 21 22 * a class that can convert int to byte-array and vice versa 22 23 */ 23 class Converter : public BaseObject24 class Converter : public BaseObject 24 25 { 25 26 public: … … 43 44 static float byteArrayToFloat(byte* a); 44 45 45 static byte* _floatToByteArray(float x); 46 static float _byteArrayToFloat(byte* a); 46 static int _floatToByteArray(float x, byte* a, int length); 47 static int _byteArrayToFloat(const byte* a, float* x); 48 49 50 static void debug(); 51 static void floatTest(float x); 52 static float getDenormConst(); 53 54 47 55 private: 48 56 Converter(); … … 50 58 }; 51 59 60 #undef byte 61 52 62 #endif /*_CONVERTER*/
Note: See TracChangeset
for help on using the changeset viewer.