Salome HOME
New CMake procedure.
[modules/yacs.git] / src / SALOMEDSImpl / SALOMEDSImpl_Tool.cxx
index c91f5aeb5d8da97730d98b00b70151eac87087a8..521526e41d26fa87b8eb4a16a84386e55e51cb56 100644 (file)
@@ -50,7 +50,7 @@
 #endif
 
 
-bool Exists(const std::string thePath) 
+bool SALOMEDS_Exists(const std::string thePath)
 {
 #ifdef WIN32 
   if (  GetFileAttributes (  thePath.c_str()  ) == 0xFFFFFFFF  ) { 
@@ -106,8 +106,8 @@ std::string SALOMEDSImpl_Tool::GetTmpDir()
 
   std::string aDir = aTmpDir;
   
-  if(Exists(aDir)) {
-    for(aRND = 0; Exists(aDir); aRND++) {
+  if(SALOMEDS_Exists(aDir)) {
+    for(aRND = 0; SALOMEDS_Exists(aDir); aRND++) {
       sprintf(buffer, "%d", aRND);
       aDir = aTmpDir+buffer;  //Build a unique directory name
     }
@@ -143,7 +143,7 @@ void SALOMEDSImpl_Tool::RemoveTemporaryFiles(const std::string& theDirectory,
   for(i=1; i<=aLength; i++) {
     std::string aFile(aDirName);
     aFile += theFiles[i-1];
-    if(!Exists(aFile)) continue;
+    if(!SALOMEDS_Exists(aFile)) continue;
 
 #ifdef WIN32
     DeleteFile(aFile.c_str());
@@ -153,7 +153,7 @@ void SALOMEDSImpl_Tool::RemoveTemporaryFiles(const std::string& theDirectory,
   }
 
   if(IsDirDeleted) {
-    if(Exists(aDirName)) {
+    if(SALOMEDS_Exists(aDirName)) {
 #ifdef WIN32
       RemoveDirectory(aDirName.c_str());
 #else