Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to new MG license mechanism and keep compatibility with old ones
[modules/smesh.git]
/
src
/
SMESH
/
SMESH_DriverShape.cxx
diff --git
a/src/SMESH/SMESH_DriverShape.cxx
b/src/SMESH/SMESH_DriverShape.cxx
index c9db8372e1578abd01517c5ec3cb35a2c1e613e5..8efa1943f16e0ff6139123260047676559063bf3 100644
(file)
--- a/
src/SMESH/SMESH_DriverShape.cxx
+++ b/
src/SMESH/SMESH_DriverShape.cxx
@@
-24,7
+24,6
@@
// Author : Yoann AUDOUIN, EDF
// Module : SMESH
//
// Author : Yoann AUDOUIN, EDF
// Module : SMESH
//
-
#include <utilities.h>
#include <Utils_SALOME_Exception.hxx>
#include "SMESH_DriverShape.hxx"
#include <utilities.h>
#include <Utils_SALOME_Exception.hxx>
#include "SMESH_DriverShape.hxx"
@@
-41,9
+40,11
@@
//Occ include
#include <TopoDS.hxx>
//Occ include
#include <TopoDS.hxx>
+#ifndef WIN32
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
namespace fs = boost::filesystem;
#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
/**
* @brief Import the content of a shape file (STEP) into a TopDS_Shape object
@@
-146,7
+147,8
@@
int exportBREPShape(const std::string shape_file, const TopoDS_Shape& aShape){
*
* @return error code
*/
*
* @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"){
std::string type = fs::path(shape_file).extension().string();
boost::algorithm::to_lower(type);
if (type == ".brep"){
@@
-156,6
+158,9
@@
int importShape(const std::string shape_file, TopoDS_Shape& aShape){
} else {
throw SALOME_Exception("Unknow format for importShape: " + type);
}
} else {
throw SALOME_Exception("Unknow format for importShape: " + type);
}
+#else
+ return 0;
+#endif
}
/**
}
/**
@@
-166,7
+171,8
@@
int importShape(const std::string shape_file, TopoDS_Shape& aShape){
*
* @return error code
*/
*
* @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"){
std::string type = fs::path(shape_file).extension().string();
boost::algorithm::to_lower(type);
if (type == ".brep"){
@@
-176,4
+182,7
@@
int exportShape(const std::string shape_file, const TopoDS_Shape& aShape){
} else {
throw SALOME_Exception("Unknow format for exportShape: " + type);
}
} else {
throw SALOME_Exception("Unknow format for exportShape: " + type);
}
+#else
+ return 0;
+#endif
}
}