Odil
A C++11 library for the DICOM standard
src
odil
dcmtk
VRTraits.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 _4f556093_02e3_4659_9026_2b16bc2c8a51
10
#define _4f556093_02e3_4659_9026_2b16bc2c8a51
11
12
#include <vector>
13
14
#include <dcmtk/config/osconfig.h>
15
#include <dcmtk/dcmdata/dcvr.h>
16
17
namespace
odil
18
{
19
20
namespace
dcmtk
21
{
22
30
template
<DcmEVR VR>
31
struct
VRTraits
;
32
33
#define DECLARE_VR_TRAITS(vr, value_type) \
34
\
35
template<> \
36
struct VRTraits<vr> \
37
{ \
38
\
39
typedef value_type ValueType; \
40
};
41
42
DECLARE_VR_TRAITS
(EVR_AE, std::string)
43
DECLARE_VR_TRAITS
(EVR_AS, std::
string
)
44
//DECLARE_VR_TRAITS(EVR_AT
45
DECLARE_VR_TRAITS
(EVR_CS, std::
string
)
46
DECLARE_VR_TRAITS
(EVR_DA, std::
string
)
47
DECLARE_VR_TRAITS
(EVR_DS, Float64)
48
DECLARE_VR_TRAITS
(EVR_DT, std::
string
)
49
DECLARE_VR_TRAITS
(EVR_FD, Float64)
50
DECLARE_VR_TRAITS
(EVR_FL, Float32)
51
DECLARE_VR_TRAITS
(EVR_IS, Sint32)
52
DECLARE_VR_TRAITS
(EVR_LO, std::
string
)
53
DECLARE_VR_TRAITS
(EVR_LT, std::
string
)
54
DECLARE_VR_TRAITS
(EVR_OB, std::vector<
unsigned
char
>)
55
DECLARE_VR_TRAITS
(EVR_OF, std::vector<
unsigned
char
>)
56
DECLARE_VR_TRAITS
(EVR_OW, std::vector<
unsigned
char
>)
57
DECLARE_VR_TRAITS
(EVR_PN, std::
string
)
58
DECLARE_VR_TRAITS
(EVR_SH, std::
string
)
59
DECLARE_VR_TRAITS
(EVR_SL, Sint32)
60
//DECLARE_VR_TRAITS(EVR_SQ
61
DECLARE_VR_TRAITS
(EVR_SS, Sint16)
62
DECLARE_VR_TRAITS
(EVR_ST, std::
string
)
63
DECLARE_VR_TRAITS
(EVR_TM, std::
string
)
64
DECLARE_VR_TRAITS
(EVR_UI, std::
string
)
65
DECLARE_VR_TRAITS
(EVR_UL, Uint32)
66
DECLARE_VR_TRAITS
(EVR_UN, std::vector<
unsigned
char
>)
67
DECLARE_VR_TRAITS
(EVR_US, Uint16)
68
DECLARE_VR_TRAITS
(EVR_UT, std::
string
)
69
70
#undef DECLARE_VR_TRAITS
71
72
}
73
74
}
75
76
#endif // _4f556093_02e3_4659_9026_2b16bc2c8a51
odil
Definition:
Association.h:24
VRTraits
Information related to VR.
DECLARE_VR_TRAITS
#define DECLARE_VR_TRAITS(vr, value_type)
Definition:
VRTraits.h:45
Generated by
1.8.17