From: <wol...@us...> - 2004-04-17 17:33:11
|
Update of /cvsroot/csp/APPLICATIONS/SimData/Include/SimData In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11640/Include/SimData Modified Files: Matrix3.h Quat.h Vector3.h Log Message: Changes to serialize and deserialize to binary buffers to use for network packets. Index: Matrix3.h =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/Matrix3.h,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** Matrix3.h 19 Oct 2003 23:53:56 -0000 1.15 --- Matrix3.h 17 Apr 2004 17:33:02 -0000 1.16 *************** *** 587,590 **** --- 587,594 ---- #endif // SWIG + virtual int readBinary(const unsigned char *, int size); + virtual int writeBinary(unsigned char *, int size); + + protected: /** The matrix elements */ Index: Quat.h =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/Quat.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Quat.h 19 Oct 2003 23:53:56 -0000 1.9 --- Quat.h 17 Apr 2004 17:33:02 -0000 1.10 *************** *** 457,460 **** --- 457,464 ---- #endif // SWIG + virtual int readBinary(const unsigned char *, int size); + virtual int writeBinary(unsigned char *, int size); + + }; // end of class prototype Index: Vector3.h =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/SimData/Include/SimData/Vector3.h,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Vector3.h 25 Oct 2003 00:25:00 -0000 1.18 --- Vector3.h 17 Apr 2004 17:33:02 -0000 1.19 *************** *** 330,333 **** --- 330,336 ---- virtual void parseXML(const char*); + virtual int readBinary(const unsigned char *, int size); + virtual int writeBinary(unsigned char *, int size); + #ifdef SWIG // setup accessors for x, y, and z (ugly hack) *************** *** 362,365 **** --- 365,369 ---- inline Vector3 operator * (double lhs, const Vector3 &rhs) { return rhs*lhs; } + NAMESPACE_SIMDATA_END // simdata |