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

External.h

Go to the documentation of this file.
00001 /* SimData: Data Infrastructure for Simulations
00002  * Copyright (C) 2002 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 
00026 #ifndef __SIMDATA_EXTERNAL_H__
00027 #define __SIMDATA_EXTERNAL_H__
00028 
00029 #include <string>
00030 #include <SimData/BaseType.h>
00031 
00032 
00033 NAMESPACE_SIMDATA
00034 
00047 class SIMDATA_EXPORT External: public BaseType {
00048 protected:
00049         std::string _path;
00050         std::string _native_path;
00051 
00052 public:
00055         virtual ~External();
00056 
00057 #ifndef SWIG
00058 
00060         const External &operator=(std::string const &);
00061 
00064         const External &operator=(External const &);
00065 #endif // SWIG
00066 
00069         bool operator==(External const &);
00070 
00073         bool operator!=(External const &path) { return !(*this==path); }
00074 
00077         bool operator==(std::string const &);
00078 
00081         bool operator!=(std::string const &path) { return !(*this==path); }
00082 
00085         void setSource(const char* path);
00086 
00089         const std::string& getSource() const;
00090 
00093         virtual void serialize(Archive&);
00094         
00097         virtual std::string asString() const;
00098 
00101         virtual std::string typeString() const { return "type::External"; }
00102 };
00103 
00104 NAMESPACE_SIMDATA_END
00105 
00106 
00107 #endif //__SIMDATA_EXTERNAL_H__
00108 

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]