Enables working with files in the XML Format. More...
#include <IOField.h>
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. | |
| IOField (const string &mesh_file, const string &file, Mesh &ms, AccessType access, bool compact=true) | |
| Constructor using file name, mesh file and mesh. | |
| IOField (const string &file, Mesh &ms, AccessType access, bool compact=true) | |
| Constructor using file name and mesh. | |
| IOField (const string &file, AccessType access, const string &name) | |
| Constructor using file name and field name. | |
| ~IOField () | |
| Destructor. | |
| void | setMeshFile (const string &file) |
| Set mesh file. | |
| void | open () |
| Open file. | |
| void | open (const string &file, AccessType access) |
| Open file. | |
| 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. | |
| real_t | get (Vect< real_t > &v) |
Get Vect v instance from file. | |
| int | get (Vect< real_t > &v, const string &name) |
Get Vect v instance from file if the field has the given name. | |
| int | get (DMatrix< real_t > &A, const string &name) |
Get DMatrix A instance from file if the field has the given name. | |
| int | get (DSMatrix< real_t > &A, const string &name) |
Get DSMatrix A instance from file if the field has the given name. | |
| int | get (Vect< real_t > &v, real_t t) |
Get Vect v instance from file corresponding to a specific time value. | |
| void | saveGMSH (string output_file, string mesh_file) |
| Save field vectors in a file using GMSH format. | |
Enables working with files in the XML Format.
This class has methods to store vectors in files and read from files.