Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

anyc.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1999  Carsten Winkelholz
00003 
00004 Address:  FGAN Forschungsgesellschaft fr Angewandte Naturwissenschaften e. V.
00005       Neuenahrer Str. 20
00006       D - 53343 Wachtberg
00007       
00008 Email:    winkelholz@fgan.de
00009 
00010 This program is free software; you can redistribute it and/or
00011 modify it under the terms of the GNU General Public License
00012 as published by the Free Software Foundation; either version 2
00013 of the License, or (at your option) any later version.
00014 
00015 This program is distributed in the hope that it will be useful,
00016 but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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 

Generated on Tue Jul 29 14:24:08 2003 for Open ActiveWrl by doxygen1.3-rc2