fw4spl
io/fwNetworkIO/include/fwNetworkIO/helper/Series.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #pragma once
8 
9 #include "fwNetworkIO/config.hpp"
10 
11 #include <fwData/Vector.hpp>
12 
13 #include <fwMedData/SeriesDB.hpp>
14 
15 #include <dcmtk/config/osconfig.h>
16 #include <dcmtk/dcmnet/scu.h>
17 
18 #include <QJsonObject>
19 
20 namespace fwMedData
21 {
22 class DicomSeries;
23 }
24 
25 namespace fwMedData
26 {
27 class ImageSeries;
28 class ModelSeries;
29 }
30 
31 namespace fwNetworkIO
32 {
33 namespace helper
34 {
35 
39 class FWNETWORKIO_CLASS_API Series
40 {
41 public:
42 
43  typedef ::fwMedData::SeriesDB::ContainerType DicomSeriesContainer;
44  typedef std::vector< std::string > InstanceUIDContainer;
45  typedef std::map < std::string, unsigned int > InstanceCountMap;
46 
51  FWNETWORKIO_API static DicomSeriesContainer toFwMedData(const QJsonObject& answer);
52 
57  FWNETWORKIO_API static InstanceUIDContainer toSeriesInstanceUIDContainer(DicomSeriesContainer series);
58 
59 };
60 
61 } //helper
62 } //fwNetworkIO
Namespace containing medical data.
The namespace fwNetworkIO contains the primary methods to access network.