![]() |
00001 // Copyright (C) 2002 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __FILE_H 00005 #define __FILE_H 00006 00007 #include <string> 00008 #include <dolfin/Function.h> 00009 00010 namespace dolfin { 00011 00012 class Vector; 00013 class Matrix; 00014 class Mesh; 00015 class Function; 00016 class Function::Vector; 00017 class Sample; 00018 class ParameterList; 00019 class GenericFile; 00020 00021 class File { 00022 public: 00023 00024 enum Type { XML, MATLAB, OCTAVE, OPENDX, GID }; 00025 00026 File(const std::string& filename); 00027 File(const std::string& filename, Type type); 00028 ~File(); 00029 00030 // Input 00031 00032 void operator>> (Vector& x); 00033 void operator>> (Matrix& A); 00034 void operator>> (Mesh& mesh); 00035 void operator>> (Function& u); 00036 void operator>> (Function::Vector& u); 00037 void operator>> (Sample& sample); 00038 void operator>> (ParameterList& parameters); 00039 00040 // Output 00041 00042 void operator<< (Vector& x); 00043 void operator<< (Matrix& A); 00044 void operator<< (Mesh& mesh); 00045 void operator<< (Function& u); 00046 void operator<< (Function::Vector& u); 00047 void operator<< (Sample& sample); 00048 void operator<< (ParameterList& parameters); 00049 00050 private: 00051 00052 GenericFile* file; 00053 00054 }; 00055 00056 } 00057 00058 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.