00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef ANYC_H
00026 #define ANYC_H
00027
00028 #include "oaw/misc/matrixc.h"
00029 #include "oaw/misc/vectorc.h"
00030 #include "oaw/misc/stringc.h"
00031 #include "oaw/misc/timec.h"
00032 #include "../oawconfig.h"
00033
00034 OAW_BEGIN_NAMESPACE
00035
00036 class OAW_DLLMAPPING AnyC{
00037 public:
00038 AnyC(char*,long);
00039 void ResetIter();
00040 void SetBuffer(char*, long);
00041
00042 void AddByteBuf(const char*,long);
00043 void ReadByteBuf(char*,long);
00044 void AddLongBuf(long*,long);
00045 void ReadLongBuf(long*,long);
00046 void AddFloatBuf(float*,long);
00047 void ReadFloatBuf(float*,long);
00048 void AddLong(const long&);
00049 void ReadLong(long&);
00050 void AddDouble(const double&);
00051 void ReadDouble(double&);
00052 void AddVector2(const Vector2C&);
00053 void ReadVector2(Vector2C&);
00054 void AddVector3(const Vector3C&);
00055 void ReadVector3(Vector3C&);
00056 void AddVector4(const Vector4C&);
00057 void ReadVector4(Vector4C&);
00058 void AddTime(const TimeC&);
00059 void ReadTime(TimeC&);
00060 void AddShort(const short&);
00061 void ReadShort(short&);
00062 void AddFloat(const float&);
00063 void ReadFloat(float&);
00064 void AddString(const StringC&);
00065 void ReadString(StringC&);
00066
00067 const char* GetBuffer(){return m_data;}
00068 const long& GetIter(){return m_iter;}
00069 void IterFF(const long& l){m_iter+=l;}
00070 void WriteLong(long,long);
00071
00072 protected:
00073 char* m_data;
00074 long m_iter;
00075 long m_bufLen;
00076 };
00077
00078 OAW_END_NAMESPACE
00079
00080
00081 #endif
00082
00083
00084
00085
00086