Odil
A C++11 library for the DICOM standard
VR.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 _998aa43a_9e90_4d39_a074_a7074ac5c9b8
10#define _998aa43a_9e90_4d39_a074_a7074ac5c9b8
11
12#include <string>
13
14#include "odil/odil.h"
15
16namespace odil
17{
18
19class Tag;
20
22enum class VR
23{
24 UNKNOWN,
25 AE, AS, AT, CS, DA, DS, DT, FL, FD, IS, LO, LT, OB, OD, OF, OL, OV, OW, PN,
26 SH, SL, SQ, SS, ST, SV, TM, UC, UI, UL, UN, UR, US, UT, UV,
27 INVALID=9999
28};
29
31ODIL_API std::string as_string(VR vr);
32
38ODIL_API VR as_vr(std::string const & vr);
39
45ODIL_API VR as_vr(Tag const & tag);
46
49
52
55
58
59}
60
61#endif // _998aa43a_9e90_4d39_a074_a7074ac5c9b8
A DICOM element tag.
Definition: Tag.h:26
Definition: Association.h:25
VR as_vr(std::string const &vr)
Convert a string to its VR.
bool is_string(VR vr)
Test whether a VR contains text.
bool is_binary(VR vr)
Test whether a VR contains binary data.
bool is_real(VR vr)
Test whether a VR contains rel numbers.
std::string as_string(VR vr)
Convert a VR to its string representation.
bool is_int(VR vr)
Test whether a VR contains integers.
VR
Value representations of DICOM.
Definition: VR.h:23
#define ODIL_API
Definition: odil.h:28