]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIODicomScanner.cpp
Clean code
[creaImageIO.git] / src / creaImageIODicomScanner.cpp
index 7b1b0b7d4cadfd5ec603aacb43072412ff0e3217..8f7dbc1d86f884867eae8a8ef318aaf8c1da0b2e 100644 (file)
 */
 
 #include <creaImageIODicomScanner.h>
-#include "creaImageIOSystem.h"
+
 #include <boost/filesystem.hpp>
 #include "boost/algorithm/string.hpp"
-
-
-
-#include <creaImageIOSystem.h>
 #include "boost/filesystem/path.hpp"
 
-#include <creaImageIOTreeAttributeDescriptor.h>
-#include <vtkStringArray.h>
-#include <creaImageIOGimmick.h>
-#include <gdcmDirectory.h>
-
 #include <fstream>
-
+#if defined(_WIN32)
+#pragma warning(disable: 4996)
+#endif
 
 #ifdef _DEBUG
 #define new DEBUG_NEW
@@ -176,7 +169,7 @@ void DicomImageScanner::ReadAttributes(const std::string& filename,
                        if ( attr.find("D0004_1500") != attr.end())
                        {
                                boost::filesystem::path full_path(filename);
-                               std::string f = full_path.leaf();
+                               std::string f = full_path.leaf().string();
                                attr["D0004_1500"] = f;
                        }
                        if ( attr.find("FullFileName")!= attr.end())