]> Creatis software - gdcm.git/blobdiff - src/gdcmDirList.cxx
ENH: Each time a *.dic file is changed, force a complete rebuild of Dicts/ directory
[gdcm.git] / src / gdcmDirList.cxx
index d4d0c2db649b3e269fce44ef13a4ff99b5ade0d1..ca5c5fa1fc38b1ffae0ff13dfb870f56d4e5e087 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDirList.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/27 23:03:07 $
-  Version:   $Revision: 1.25 $
+  Date:      $Date: 2004/12/12 13:32:23 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -22,7 +22,7 @@
 #include <iostream>
 #include <algorithm>
 
-#if defined(_MSC_VER) || defined (__CYGWIN__)
+#if defined(_MSC_VER) || defined(__BORLANDC__)
    #include <windows.h> 
 #ifdef _MSC_VER
    #include <direct.h>
@@ -80,10 +80,9 @@ std::string const & DirList::GetDirName() const
 // Private
 
 /**
- * \ingroup DirList
  * \brief   Explore a directory with possibility of recursion
  *          return number of files read
- * @param  dirName directory to explore
+ * @param  dirpath   directory to explore
  * @param  recursive whether we want recursion or not
  */
 int DirList::Explore(std::string const & dirpath, bool recursive)
@@ -91,7 +90,7 @@ int DirList::Explore(std::string const & dirpath, bool recursive)
    int numberOfFiles = 0;
    std::string fileName;
    std::string dirName = Util::NormalizePath(dirpath);
-#if defined(_MSC_VER) || defined(__CYGWIN__)
+#if defined(_MSC_VER) || defined(__BORLANDC__)
    WIN32_FIND_DATA fileData; 
    HANDLE hFile=FindFirstFile((dirName+"*").c_str(),&fileData);
    int found = true;