Commit b6632e07 authored by Mike Kremer's avatar Mike Kremer

Added virtual destructor to reader and writer classes in order to avoid compiler warnings.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@84 fdac6126-5c0c-442c-9429-916003d36597
parent 3996aade
......@@ -69,6 +69,9 @@ class BaseReader
{
public:
/// Destructor
virtual ~BaseReader() {};
/// Returns a brief description of the file type that can be parsed.
virtual std::string get_description() const = 0;
......
......@@ -101,6 +101,9 @@ public:
_OFFReader_();
/// Destructor
virtual ~_OFFReader_() {};
std::string get_description() const { return "Object File Format"; }
std::string get_extensions() const { return "off"; }
std::string get_magic() const { return "OFF"; }
......
......@@ -74,6 +74,9 @@ public:
// constructor
_STLReader_();
/// Destructor
virtual ~_STLReader_() {};
std::string get_description() const
{ return "Stereolithography Interface Format"; }
......
......@@ -67,6 +67,9 @@ class BaseWriter
public:
typedef unsigned int Option;
/// Destructor
virtual ~BaseWriter() {};
/// Return short description of the supported file format.
virtual std::string get_description() const = 0;
......
......@@ -67,6 +67,9 @@ public:
_OBJWriter_();
/// Destructor
virtual ~_OBJWriter_() {};
std::string get_description() const { return "Alias/Wavefront"; }
std::string get_extensions() const { return "obj"; }
......
......@@ -79,6 +79,8 @@ public:
_OFFWriter_();
virtual ~_OFFWriter_() {};
std::string get_description() const { return "no description"; }
std::string get_extensions() const { return "off"; }
......
......@@ -74,9 +74,12 @@ class _OMWriter_ : public BaseWriter
{
public:
// constructor
/// Constructor
_OMWriter_();
/// Destructor
virtual ~_OMWriter_() {};
std::string get_description() const
{ return "OpenMesh Format"; }
......
......@@ -73,6 +73,9 @@ public:
_PLYWriter_();
/// Destructor
virtual ~_PLYWriter_() {};
std::string get_description() const { return "PLY polygon file format"; }
std::string get_extensions() const { return "ply"; }
......
......@@ -70,6 +70,9 @@ class _STLWriter_ : public BaseWriter
public:
_STLWriter_();
/// Destructor
virtual ~_STLWriter_() {};
std::string get_description() const { return "Stereolithography Format"; }
std::string get_extensions() const { return "stla stlb"; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment