Interface for mesh writer implementations. More...
#include <WriterIface.hpp>
Public Member Functions | |
virtual | ~WriterIface () |
virtual ErrorCode | write_file (const char *file_name, const bool overwrite, const FileOptions &opts, const EntityHandle *meshset_list, const int num_sets, const std::vector< std::string > &qa_records, const Tag *tag_list=NULL, int num_tags=0, int requested_output_dimension=3)=0 |
Export mesh to a file. More... | |
Interface for mesh writer implementations.
Definition at line 34 of file WriterIface.hpp.
|
inlinevirtual |
Definition at line 37 of file WriterIface.hpp.
|
pure virtual |
Export mesh to a file.
Method all writers must provide to export a mesh.
file_name | The name of the file to create. |
overwrite | If false, reader should fail if the file already exists. |
meshset_list | A list of meshsets to export, or NULL if the whole mesh is to be exported. |
num_sets | The length of meshset_list or zero if the whole mesh is to be exported. |
qa_records | File history metadata |
tag_list | Array of handles for tags to write. If null, write all tags. If non-NULL but num_tags is zero, write no tags. |
requseted_output_dimension | The geometric dimension of the output mesh (coord values per vertex.) If zero, the dimension of the mesh as returned from Interface should be used. |
Implemented in moab::WriteHDF5, moab::WriteGMV, moab::WriteDamsel, moab::WriteVtk, moab::WriteTemplate, moab::WriteSTL, moab::WriteSmf, moab::WriteSLAC, moab::WriteNC, moab::WriteGmsh, moab::WriteCGNS, moab::WriteCCMIO, moab::WriteAns, and moab::WriteNCDF.
Referenced by moab::Core::write_file().