/usr/include/odil/VR.h is in libodil-dev 0.8.0-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | /*************************************************************************
* odil - Copyright (C) Universite de Strasbourg
* Distributed under the terms of the CeCILL-B license, as published by
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
* for details.
************************************************************************/
#ifndef _998aa43a_9e90_4d39_a074_a7074ac5c9b8
#define _998aa43a_9e90_4d39_a074_a7074ac5c9b8
#include <string>
#include "odil/odil.h"
namespace odil
{
class Tag;
/// @brief Value representations of DICOM.
enum class VR
{
UNKNOWN,
AE, AS, AT, CS, DA, DS, DT, FL, FD, IS, LO, LT, OB, OD, OF, OL, OW, PN, SH,
SL, SQ, SS, ST, TM, UC, UI, UL, UN, UR, US, UT,
INVALID
};
/// @brief Convert a VR to its string representation.
ODIL_API std::string as_string(VR vr);
/**
* @brief Convert a string to its VR.
*
* If the string does not represent a VR, a odil::Exception is raised.
*/
ODIL_API VR as_vr(std::string const & vr);
/**
* @brief Guess a VR from a tag.
*
* If the VR cannot be guessed, a odil::Exception is raised.
*/
ODIL_API VR as_vr(Tag const & tag);
/// @brief Test whether a VR contains integers.
ODIL_API bool is_int(VR vr);
/// @brief Test whether a VR contains rel numbers.
ODIL_API bool is_real(VR vr);
/// @brief Test whether a VR contains text.
ODIL_API bool is_string(VR vr);
/// @brief Test whether a VR contains binary data.
ODIL_API bool is_binary(VR vr);
}
#endif // _998aa43a_9e90_4d39_a074_a7074ac5c9b8
|