fw4spl
fwGdcmIO/include/fwGdcmIO/helper/DicomDir.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_DICOMDIR_HPP__
8 #define __FWGDCMIO_HELPER_DICOMDIR_HPP__
9 
10 #include "fwGdcmIO/config.hpp"
11 
12 #include <fwCore/macros.hpp>
13 
14 #include <boost/filesystem/path.hpp>
15 
16 #include <cstdint>
17 
18 namespace fwMedData
19 {
20 class DicomSeries;
21 }
22 
23 namespace fwJobs
24 {
25 class Observer;
26 }
27 
28 namespace fwLog
29 {
30 class Logger;
31 }
32 
33 namespace fwGdcmIO
34 {
35 namespace helper
36 {
37 
41 class FWGDCMIO_CLASS_API DicomDir
42 {
43 public:
48  FWGDCMIO_API static ::boost::filesystem::path findDicomDir(const ::boost::filesystem::path& root);
49 
56  FWGDCMIO_API static void retrieveDicomSeries(const ::boost::filesystem::path& dicomdir,
57  std::vector< SPTR(::fwMedData::DicomSeries) >& seriesDB,
58  const SPTR(::fwLog::Logger)& logger,
59  std::function< void(std::uint64_t) > progress = nullptr,
60  std::function< bool() > cancel = nullptr);
61 
62 };
63 
64 } //helper
65 } //fwGdcmIO
66 
67 #endif /* __FWGDCMIO_HELPER_DICOMDIR_HPP__ */
#define SPTR(_cls_)
Namespace containing medical data.
This file defines fwCore base macros.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
fwLog contains classes used to manage logs.
Definition: Log.hpp:16
Logger class used to store logs.
DicomDir Helper. This class is used to extract a list of files from a dicomdir file.
This namespace fwJobs provides jobs management.