fw4spl
fwDcmtkIO/include/fwDcmtkIO/helper/DicomDir.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
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 __FWDCMTKIO_HELPER_DICOMDIR_HPP__
8 #define __FWDCMTKIO_HELPER_DICOMDIR_HPP__
9 
10 #include "fwDcmtkIO/config.hpp"
11 
12 #include <boost/filesystem/path.hpp>
13 
14 namespace fwDcmtkIO
15 {
16 namespace helper
17 {
18 
22 class FWDCMTKIO_CLASS_API DicomDir
23 {
24 public:
26  FWDCMTKIO_API static bool readDicomDir(const ::boost::filesystem::path& root,
27  std::vector<std::string>& dicomFiles);
28 
29 private:
31  FWDCMTKIO_API static std::string createRegex(std::string filename);
32 
34  FWDCMTKIO_API static ::boost::filesystem::path getRealFilename(
35  const ::boost::filesystem::path& root, const std::string& filename);
36 
37 };
38 
39 } //helper
40 } //fwDcmtkIO
41 
42 
43 #endif /* __FWDCMTKIO_HELPER_DICOMDIR_HPP__ */
DicomDir Helper. This class is used to extract a list of files from a dicomdir file.
fwDcmtkIO contains classes used to pull Dicom images from a pacs using dcmtk library.
Definition: Codec.hpp:12