#include <MeshFileWriter.h>
Public Member Functions | |
MeshFileWriter () | |
MeshFileWriter (const std::string &file_name) | |
virtual | ~MeshFileWriter () |
void | Free () |
bool | Init () |
virtual bool | Init (const std::string &file_name) |
virtual bool | doWrite (const hHybridMesh *mesh) |
Protected Attributes | |
std::ofstream | _file |
std::string | _file_name |
MeshFileWriter::MeshFileWriter | ( | ) |
MeshFileWriter::MeshFileWriter | ( | const std::string & | file_name | ) |
MeshFileWriter::~MeshFileWriter | ( | ) | [virtual] |
bool MeshFileWriter::doWrite | ( | const hHybridMesh * | mesh | ) | [virtual] |
Implements MeshWrite::IMeshWriter.
Reimplemented in MeshWrite::DmpFileExporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
void MeshFileWriter::Free | ( | ) | [virtual] |
Frees all resources allocated by class during mesh export.
Implements MeshWrite::IMeshWriter.
Reimplemented in MeshWrite::DmpFileExporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
bool MeshFileWriter::Init | ( | const std::string & | file_name | ) | [virtual] |
Implements MeshWrite::IMeshWriter.
Reimplemented in MeshWrite::DmpFileExporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
bool MeshFileWriter::Init | ( | ) | [virtual] |
Initializes exporter. After this function call exporter should be ready for exporting the mesh. /return true if exporter initializes correctly, otherwise false. If this function doesn't succeeded exporting process is gently stopped and error is thrown.
Implements MeshWrite::IMeshWriter.
Reimplemented in MeshWrite::DmpFileExporter, MeshWrite::KazFileExporter, and MeshWrite::MileninExporter.
std::ofstream MeshWrite::MeshFileWriter::_file [protected] |
std::string MeshWrite::MeshFileWriter::_file_name [protected] |