Abstract class for mesh loaders. More...
#include <meshloader.h>
Inherited by ExodusIIReader, HDF5Reader, and Mesh3DReader.
Public Member Functions | |
| virtual | ~MeshLoader () |
| virtual bool | load (const char *file_name, Mesh *mesg)=0 |
| Loads the mesh from a file. Aborts the program on error. | |
| virtual bool | save (const char *file_name, Mesh *mesh)=0 |
| Saves the mesh, including all refinements, to a file. Caution: never overwrite hand-created meshes with this function -- all comments in the original file will be lost. | |
Abstract class for mesh loaders.
| virtual MeshLoader::~MeshLoader | ( | ) | [inline, virtual] |
| virtual bool MeshLoader::load | ( | const char * | file_name, | |
| Mesh * | mesg | |||
| ) | [pure virtual] |
Loads the mesh from a file. Aborts the program on error.
| filename | [in] The name of the file. | |
| mesh | [out] The mesh. |
Implemented in ExodusIIReader, HDF5Reader, and Mesh3DReader.
| virtual bool MeshLoader::save | ( | const char * | file_name, | |
| Mesh * | mesh | |||
| ) | [pure virtual] |
Saves the mesh, including all refinements, to a file. Caution: never overwrite hand-created meshes with this function -- all comments in the original file will be lost.
| filename | [in] The name of the file. | |
| mesh | [out] The mesh. |
Implemented in ExodusIIReader, HDF5Reader, and Mesh3DReader.
1.6.3