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
21namespace odil
22{
23
24namespace dcmtk
25{
26
28ODIL_API DcmEVR convert(VR vr);
29
31ODIL_API VR convert(DcmEVR evr);
32
34ODIL_API DcmTagKey convert(Tag const & tag);
35
37ODIL_API Tag convert(DcmTagKey const & tag);
38
40ODIL_API DcmElement * convert(Tag const & tag, Element const & source);
41
43template<typename TSourceType, typename TDestinationType>
45 Element const & source, DcmElement * destination,
46 TSourceType const & (Element::*getter)() const);
47
49ODIL_API Element convert(DcmElement * source);
50
52template<typename TSourceType>
54 Element const & source, DcmElement * destination,
55 TSourceType const & (Element::*getter)() const);
56
59void convert(Element const & source, DcmOtherByteOtherWord * destination);
60
62ODIL_API void convert(Element const & source, DcmOtherFloat * destination);
63
65template<typename TSourceType, typename TDestinationType>
67 DcmElement * source, Element & destination,
68 TDestinationType & (Element::*getter)());
69
71ODIL_API DcmItem * convert(
72 std::shared_ptr<DataSet const> source, bool as_data_set=true);
73
75ODIL_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
Element of a DICOM data set.
Definition: Element.h:27
A DICOM element tag.
Definition: Tag.h:25
DcmEVR convert(VR vr)
Convert a odil::VR to a DcmVR.
Definition: Association.h:25
VR
Value representations of DICOM.
Definition: VR.h:23
#define ODIL_API
Definition: odil.h:28