Commit 7ed834f8 authored by Mike Kremer's avatar Mike Kremer

Changed files

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@33 66977474-1d4b-4f09-8fe9-267525286df2
parent b95e77cb
......@@ -43,14 +43,58 @@
#ifndef FILEMANAGER_HH_
#define FILEMANAGER_HH_
#include <string>
namespace OpenVolumeMesh {
namespace IO {
/**
* \class FileManager
* \brief Read/Write mesh data from/to files
*/
template <class MeshT>
class FileManager {
public:
/// Default constructor
FileManager();
/// Default destructor
~FileManager();
/**
* \brief Read a mesh from a file
*
* Returns true if the file was successfully read. The mesh
* is stored in parameter _mesh. If something goes wrong,
* this function returns false.
*
* @param _filename The file that is to be read
* @param _mesh A reference to an OpenVolumeMesh instance
*/
bool readFile(const std::string& _filename, MeshT& _mesh) const;
/**
* \brief Write a mesh to a file
*
* Returns true if the file was successfully written. The mesh
* is passed as parameter _mesh. If something goes wrong,
* this function returns false.
*
* @param _filename The file that is to be stored
* @param _mesh A const reference to an OpenVolumeMesh instance
*/
bool writeFile(const std::string& _filename, const MeshT& _mesh) const;
};
} // Namespace IO
} // Namespace FileManager
#if defined(INCLUDE_TEMPLATES) && !defined(FILEMANAGERT_CC)
#include "FileManagerT.cc"
#endif
#endif /* FILEMANAGER_HH_ */
......@@ -40,13 +40,39 @@
* *
\*===========================================================================*/
#define FILEMANAGERT_CC
#include "FileManager.hh"
namespace OpenVolumeMesh {
namespace IO {
//==================================================
FileManager::FileManager() {
}
//==================================================
FileManager::~FileManager() {
}
//==================================================
template <class MeshT>
bool FileManager::readFile(const std::string& _filename, MeshT& _mesh) {
}
//==================================================
template <class MeshT>
bool FileManager::writeFile(const std::string& _filename, const MeshT& _mesh) {
}
} // Namespace IO
......
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