// Author : Yoann AUDOUIN, EDF
// Module : SMESH
//
-
#include <utilities.h>
#include <Utils_SALOME_Exception.hxx>
#include "SMESH_DriverShape.hxx"
//Occ include
#include <TopoDS.hxx>
+#ifndef WIN32
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
namespace fs = boost::filesystem;
+#endif
/**
* @brief Import the content of a shape file (STEP) into a TopDS_Shape object
*
* @return error code
*/
-int importShape(const std::string shape_file, TopoDS_Shape& aShape){
+int SMESH_DriverShape::importShape(const std::string shape_file, TopoDS_Shape& aShape){
+#ifndef WIN32
std::string type = fs::path(shape_file).extension().string();
boost::algorithm::to_lower(type);
if (type == ".brep"){
} else {
throw SALOME_Exception("Unknow format for importShape: " + type);
}
+#else
+ return 0;
+#endif
}
/**
*
* @return error code
*/
-int exportShape(const std::string shape_file, const TopoDS_Shape& aShape){
+int SMESH_DriverShape::exportShape(const std::string shape_file, const TopoDS_Shape& aShape){
+#ifndef WIN32
std::string type = fs::path(shape_file).extension().string();
boost::algorithm::to_lower(type);
if (type == ".brep"){
} else {
throw SALOME_Exception("Unknow format for exportShape: " + type);
}
+#else
+ return 0;
+#endif
}