X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_DriverMesh.cxx;fp=src%2FSMESH%2FSMESH_DriverMesh.cxx;h=a472895352f3660ca36c1d10cc76550bd48c2164;hb=a91b37ceb38f808da171e83d0d6a7a4c2b4bb050;hp=470278e93d5fb12f51873f896e3920a6ae0548f4;hpb=ee7ca3d826183e462048423d2416e96872d06620;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_DriverMesh.cxx b/src/SMESH/SMESH_DriverMesh.cxx index 470278e93..a47289535 100644 --- a/src/SMESH/SMESH_DriverMesh.cxx +++ b/src/SMESH/SMESH_DriverMesh.cxx @@ -25,6 +25,8 @@ // Module : SMESH // +#include "utilities.h" + #include "SMESH_DriverMesh.hxx" #include "SMESH_Mesh.hxx" @@ -53,7 +55,8 @@ bool diffMEDFile(const std::string mesh_file1, const std::string mesh_file2, con } std::string getMeshName(std::string mesh_file){ - std::unique_ptr myMedMesh=MEDFileUMesh::New(mesh_file); + // TODO: Memory leak but desctructor private check with AG + MEDFileUMesh * myMedMesh = MEDFileUMesh::New(mesh_file); return myMedMesh->getLevel0Mesh()->getName(); } @@ -70,7 +73,7 @@ std::string getMeshName(std::string mesh_file){ int importMesh(const std::string mesh_file, SMESH_Mesh& aMesh){ // TODO: change that as it depends on the language std::string mesh_name = getMeshName(mesh_file); - std::cout << "Importing mesh from " << mesh_file << " mesh " << mesh_name2 << std::endl; + MESSAGE("Importing mesh from " << mesh_file << " mesh " << mesh_name); int ret = aMesh.MEDToMesh(mesh_file.c_str(), mesh_name.c_str()); return ret; } @@ -86,8 +89,7 @@ int importMesh(const std::string mesh_file, SMESH_Mesh& aMesh){ */ int exportMesh(const std::string mesh_file, SMESH_Mesh& aMesh, const std::string mesh_name){ - // TODO: See how to get the name of the mesh. Is it usefull ? - std::cout << "Exporting mesh to " << mesh_file << std::endl; + MESSAGE("Exporting mesh to " << mesh_file); aMesh.ExportMED(mesh_file.c_str(), // theFile mesh_name.c_str(), // theMeshName false, // theAutoGroups