(9)

Enables working with files in the XML Format. More...

Inherits XMLParser.

Public Types

enum  AccessType
 Enumerated values for file access type.
 

Public Member Functions

 IOField ()
 Default constructor.
 
 IOField (const string &file, AccessType access, bool compact=true)
 Constructor using file name. More...
 
 IOField (const string &mesh_file, const string &file, Mesh &ms, AccessType access, bool compact=true)
 Constructor using file name, mesh file and mesh. More...
 
 IOField (const string &file, Mesh &ms, AccessType access, bool compact=true)
 Constructor using file name and mesh. More...
 
 IOField (const string &file, AccessType access, const string &name)
 Constructor using file name and field name. More...
 
 ~IOField ()
 Destructor.
 
void setMeshFile (const string &file)
 Set mesh file. More...
 
void open ()
 Open file. More...
 
void open (const string &file, AccessType access)
 Open file. More...
 
void close ()
 Close file.
 
void put (Mesh &ms)
 Store mesh in file.
 
void put (const Vect< real_t > &v)
 Store Vect instance v in file. More...
 
real_t get (Vect< real_t > &v)
 Get Vect v instance from file. More...
 
int get (Vect< real_t > &v, const string &name)
 Get Vect v instance from file if the field has the given name. More...
 
int get (DMatrix< real_t > &A, const string &name)
 Get DMatrix A instance from file if the field has the given name. More...
 
int get (DSMatrix< real_t > &A, const string &name)
 Get DSMatrix A instance from file if the field has the given name. More...
 
int get (Vect< real_t > &v, real_t t)
 Get Vect v instance from file corresponding to a specific time value. More...
 
void saveGMSH (string output_file, string mesh_file)
 Save field vectors in a file using GMSH format. More...
 

Detailed Description

Enables working with files in the XML Format.

This class has methods to store vectors in files and read from files.

Author
Rachid Touzani