odil
C++11libraryfortheDICOMstandard
VR.h
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 _998aa43a_9e90_4d39_a074_a7074ac5c9b8
10 #define _998aa43a_9e90_4d39_a074_a7074ac5c9b8
11 
12 #include <string>
13 
14 namespace odil
15 {
16 
17 class Tag;
18 
20 enum class VR
21 {
22  UNKNOWN,
23  AE, AS, AT, CS, DA, DS, DT, FL, FD, IS, LO, LT, OB, OD, OF, OL, OW, PN, SH,
24  SL, SQ, SS, ST, TM, UC, UI, UL, UN, UR, US, UT,
25  INVALID
26 };
27 
29 std::string as_string(VR vr);
30 
36 VR as_vr(std::string const & vr);
37 
43 VR as_vr(Tag const & tag);
44 
46 bool is_int(VR vr);
47 
49 bool is_real(VR vr);
50 
52 bool is_string(VR vr);
53 
55 bool is_binary(VR vr);
56 
57 }
58 
59 #endif // _998aa43a_9e90_4d39_a074_a7074ac5c9b8
Definition: Association.cpp:39