Odil
A C++11 library for the DICOM standard
conversion.h
Go to the documentation of this file.
1 /*************************************************************************
2  * odil - Copyright (C) Universite de Strasbourg
3  * Distributed under the terms of the CeCILL-B license, as published by
4  * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5  * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6  * for details.
7  ************************************************************************/
8 
9 #ifndef _d5ecacb8_04ff_48b0_8026_570c9b2ae360
10 #define _d5ecacb8_04ff_48b0_8026_570c9b2ae360
11 
12 #include <dcmtk/config/osconfig.h>
13 #include <dcmtk/dcmdata/dctk.h>
14 
15 #include "odil/DataSet.h"
16 #include "odil/Element.h"
17 #include "odil/odil.h"
18 #include "odil/Tag.h"
19 #include "odil/VR.h"
20 
21 namespace odil
22 {
23 
24 namespace dcmtk
25 {
26 
28 ODIL_API DcmEVR convert(VR vr);
29 
31 ODIL_API VR convert(DcmEVR evr);
32 
34 ODIL_API DcmTagKey convert(Tag const & tag);
35 
37 ODIL_API Tag convert(DcmTagKey const & tag);
38 
40 ODIL_API DcmElement * convert(Tag const & tag, Element const & source);
41 
43 template<typename TSourceType, typename TDestinationType>
44 void convert(
45  Element const & source, DcmElement * destination,
46  TSourceType const & (Element::*getter)() const);
47 
49 ODIL_API Element convert(DcmElement * source);
50 
52 template<typename TSourceType>
53 void convert(
54  Element const & source, DcmElement * destination,
55  TSourceType const & (Element::*getter)() const);
56 
59 void convert(Element const & source, DcmOtherByteOtherWord * destination);
60 
62 ODIL_API void convert(Element const & source, DcmOtherFloat * destination);
63 
65 template<typename TSourceType, typename TDestinationType>
66 void convert(
67  DcmElement * source, Element & destination,
68  TDestinationType & (Element::*getter)());
69 
71 ODIL_API DcmItem * convert(
72  std::shared_ptr<DataSet const> source, bool as_data_set=true);
73 
75 ODIL_API std::shared_ptr<DataSet> convert(DcmItem * source);
76 
77 }
78 
79 }
80 
81 #include "odil/dcmtk/conversion.txx"
82 
83 #endif // _d5ecacb8_04ff_48b0_8026_570c9b2ae360
odil::Element
Element of a DICOM data set.
Definition: Element.h:30
odil::dcmtk::convert
DcmEVR convert(VR vr)
Convert a odil::VR to a DcmVR.
odil
Definition: Association.h:23
ODIL_API
#define ODIL_API
Definition: odil.h:27
Element.h
odil::Tag
A DICOM element tag.
Definition: Tag.h:28
odil.h
VR.h
Tag.h
odil::VR
VR
Value representations of DICOM.
Definition: VR.h:26
DataSet.h