Skip to content
Snippets Groups Projects
Commit c491984c authored by Tom Fischer's avatar Tom Fischer
Browse files

Using logog logging in file readMeshFromFile.cpp.

parent 4eb848ab
No related branches found
No related tags found
No related merge requests found
/**
* @copyright
* Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*
* \file readMeshFromFile.cpp
*
* Created on 2012-09-27 by Karsten Rink
* @file readMeshFromFile.cpp
* @date 2012-09-27
* @author Karsten Rink
*/
#include "readMeshFromFile.h"
#include "Mesh.h"
#include "RapidXmlIO/RapidVtuInterface.h"
#include "RapidXmlIO/BoostVtuInterface.h"
#include "Legacy/MeshIO.h"
// ThirdParty/logog
#include "logog/include/logog.hpp"
// BaseLib
#include "StringTools.h"
#include "FileTools.h"
#include "StringTools.h"
// MeshLib
#include "Mesh.h"
namespace FileIO {
// FileIO
#include "Legacy/MeshIO.h"
#include "RapidXmlIO/BoostVtuInterface.h"
#include "readMeshFromFile.h"
namespace FileIO
{
MeshLib::Mesh* readMeshFromFile(const std::string &file_name)
{
if (BaseLib::hasFileExtension("msh", file_name))
......@@ -31,13 +36,9 @@ MeshLib::Mesh* readMeshFromFile(const std::string &file_name)
}
if (BaseLib::hasFileExtension("vtu", file_name))
{
//return FileIO::RapidVtuInterface::readVTUFile(file_name);
return FileIO::BoostVtuInterface::readVTUFile(file_name);
}
std::cout << "Unknown mesh file format" << std::endl;
ERR("readMeshFromFile(): Unknown mesh file format in file %s.", file_name.c_str());
return 0;
}
}
} // end namespace FileIO
......@@ -5,9 +5,9 @@
* http://www.opengeosys.org/project/license
*
*
* \file readMeshFromFile.h
*
* Created on 2012-09-27 by Karsten Rink
* @file readMeshFromFile.h
* @date 2012-09-27
* @author Karsten Rink
*/
#ifndef READMESHFROMFILE_H
......@@ -15,10 +15,14 @@
#include <string>
namespace MeshLib { class Mesh; }
namespace MeshLib
{
class Mesh;
}
namespace FileIO {
MeshLib::Mesh* readMeshFromFile(const std::string &file_name);
namespace FileIO
{
MeshLib::Mesh* readMeshFromFile(const std::string &file_name);
}
#endif // READMESHFROMFILE_H
\ No newline at end of file
#endif // READMESHFROMFILE_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment