dcmtkpp
conversion.h
1 /*************************************************************************
2  * dcmtkpp - 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 "dcmtkpp/DataSet.h"
16 #include "dcmtkpp/Element.h"
17 #include "dcmtkpp/Tag.h"
18 #include "dcmtkpp/VR.h"
19 
20 namespace dcmtkpp
21 {
22 
24 DcmEVR convert(VR vr);
25 
27 VR convert(DcmEVR evr);
28 
30 DcmTagKey convert(Tag const & tag);
31 
33 Tag convert(DcmTagKey const & tag);
34 
36 DcmElement * convert(Tag const & tag, Element const & source);
37 
39 template<typename TSourceType, typename TDestinationType>
40 void convert(
41  Element const & source, DcmElement * destination,
42  TSourceType const & (Element::*getter)() const);
43 
45 Element convert(DcmElement * source);
46 
48 template<typename TSourceType>
49 void convert(
50  Element const & source, DcmElement * destination,
51  TSourceType const & (Element::*getter)() const);
52 
54 void convert(Element const & source, DcmOtherByteOtherWord * destination);
55 
57 template<typename TSourceType, typename TDestinationType>
58 void convert(
59  DcmElement * source, Element & destination,
60  TDestinationType & (Element::*getter)());
61 
63 DcmItem * convert(DataSet const & source);
64 
66 DataSet convert(DcmItem * source);
67 
68 }
69 
70 #include <dcmtkpp/conversion.txx>
71 
72 #endif // _d5ecacb8_04ff_48b0_8026_570c9b2ae360
Definition: Association.cpp:22