fw4spl
fwGdcmIO/include/fwGdcmIO/helper/DicomSearch.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWGDCMIO_HELPER_DICOMSEARCH_HPP__
8 #define __FWGDCMIO_HELPER_DICOMSEARCH_HPP__
9 
10 #include "fwGdcmIO/config.hpp"
11 
12 #include <fwCore/macros.hpp>
13 
14 #include <boost/filesystem.hpp>
15 
16 #include <string>
17 #include <vector>
18 
19 namespace fwJobs
20 {
21 class Observer;
22 }
23 
24 namespace fwGdcmIO
25 {
26 namespace helper
27 {
28 
32 class FWGDCMIO_CLASS_API DicomSearch
33 {
34 public:
43  FWGDCMIO_API static void searchRecursively(const ::boost::filesystem::path& dirPath,
44  std::vector< ::boost::filesystem::path >& dicomFiles,
45  bool checkIsDicom,
46  const SPTR(::fwJobs::Observer)& fileLookupObserver = nullptr);
47 
48 protected:
55  static void checkFilenameExtension(const ::boost::filesystem::path& dirPath,
56  std::vector< ::boost::filesystem::path >& dicomFiles,
57  const SPTR(::fwJobs::Observer)& fileLookupObserver = nullptr);
58 };
59 
60 } // namespace helper
61 } // namespace fwGdcmIO
62 
63 #endif /*__FWGDCMIO_HELPER_DICOMSEARCH_HPP__*/
#define SPTR(_cls_)
This file defines fwCore base macros.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
This class contains helpers to search dicom files on filesystem.
This namespace fwJobs provides jobs management.
This class manages a job.
Definition: Observer.hpp:22