X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_DriverShape.cxx;h=8efa1943f16e0ff6139123260047676559063bf3;hb=2c3f99cda1291807be43ba211393fa2ff6f106ec;hp=c9db8372e1578abd01517c5ec3cb35a2c1e613e5;hpb=4403c126a0d688d98888156656f1df387a1b1dee;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_DriverShape.cxx b/src/SMESH/SMESH_DriverShape.cxx index c9db8372e..8efa1943f 100644 --- a/src/SMESH/SMESH_DriverShape.cxx +++ b/src/SMESH/SMESH_DriverShape.cxx @@ -24,7 +24,6 @@ // Author : Yoann AUDOUIN, EDF // Module : SMESH // - #include #include #include "SMESH_DriverShape.hxx" @@ -41,9 +40,11 @@ //Occ include #include +#ifndef WIN32 #include #include namespace fs = boost::filesystem; +#endif /** * @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 */ -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"){ @@ -156,6 +158,9 @@ int importShape(const std::string shape_file, TopoDS_Shape& aShape){ } 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 */ -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"){ @@ -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 + return 0; +#endif }