Base class for all writer modules. More...
#include </data1/home1/moebius/projects/release/OpenMesh-2.0/src/OpenMesh/Core/IO/writer/BaseWriter.hh>
Public Types | |
typedef unsigned int | Option |
Public Member Functions | |
virtual | ~BaseWriter () |
Destructor. | |
virtual std::string | get_description () const =0 |
Return short description of the supported file format. | |
virtual std::string | get_extensions () const =0 |
Return file format's extension. | |
virtual bool | can_u_write (const std::string &_filename) const |
Returns true if writer can parse _filename (checks extension). | |
virtual bool | write (const std::string &_filename, BaseExporter &_be, Options _opt) const =0 |
Write to file _filename. Data source specified by BaseExporter _be. | |
virtual bool | write (std::ostream &_os, BaseExporter &_be, Options _opt) const =0 |
Write to std::ostream _os. Data source specified by BaseExporter _be. | |
virtual size_t | binary_size (BaseExporter &, Options) const |
Returns expected size of file if binary format is supported else 0. | |
Protected Member Functions | |
bool | check (BaseExporter &_be, Options _opt) const |
Base class for all writer modules.
The module should register itself at the IOManager by calling the register_module function.