Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

BaseType.h

Go to the documentation of this file.
00001 /* SimData: Data Infrastructure for Simulations
00002  * Copyright (C) 2002, 2003 Mark Rose <tm2@stm.lbl.gov>
00003  * 
00004  * This file is part of SimData.
00005  * 
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  * 
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019  */
00020 
00021 
00032 #ifndef __SIMDATA_BASETYPE_H__
00033 #define __SIMDATA_BASETYPE_H__
00034 
00035 #include <string>
00036 #include <iostream>
00037 
00038 #include <SimData/Export.h>
00039 #include <SimData/Namespace.h>
00040 #include <SimData/Exception.h>
00041 
00042 
00043 NAMESPACE_SIMDATA
00044 
00045 class Archive;
00046 class Packer;
00047 class UnPacker;
00048 
00049 
00052 SIMDATA_EXCEPTION(ParseException)
00053 
00054 
00055 
00059 class SIMDATA_EXPORT BaseType {
00060 public:
00063         virtual ~BaseType();
00064 
00067         virtual void serialize(Archive&) {}
00068 
00071         virtual void parseXML(const char* cdata);
00072 
00080         virtual void convertXML();
00081         
00088         virtual std::string asString() const=0;
00089 
00092         virtual std::string typeString() const=0;
00093 };
00094 
00095 
00098 std::ostream &operator <<(std::ostream &o, BaseType const &t);
00099 
00100 
00101 NAMESPACE_SIMDATA_END
00102 
00103 
00104 #endif //__SIMDATA_BASETYPE_H__
00105 

SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:38 2003, using Doxygen 1.2.18.

[SF.net]