/usr/include/odil/dcmtk/VRTraits.h is in libodil0-dev 0.4.1-1.
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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | /*************************************************************************
* 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 _4f556093_02e3_4659_9026_2b16bc2c8a51
#define _4f556093_02e3_4659_9026_2b16bc2c8a51
#include <vector>
#include <dcmtk/config/osconfig.h>
#include <dcmtk/dcmdata/dcvr.h>
namespace odil
{
namespace dcmtk
{
/**
* @class odil::VRTraits
* @brief Information related to VR.
*
* The members are:
* - ValueType: the DCMTK type of the VR
*/
template<DcmEVR VR>
struct VRTraits;
#define DECLARE_VR_TRAITS(vr, value_type) \
/** @brief Traits for generic data access to values of DcmElement. */ \
template<> \
struct VRTraits<vr> \
{ \
/** @brief Type associated to the VR. */ \
typedef value_type ValueType; \
};
DECLARE_VR_TRAITS(EVR_AE, std::string)
DECLARE_VR_TRAITS(EVR_AS, std::string)
//DECLARE_VR_TRAITS(EVR_AT
DECLARE_VR_TRAITS(EVR_CS, std::string)
DECLARE_VR_TRAITS(EVR_DA, std::string)
DECLARE_VR_TRAITS(EVR_DS, Float64)
DECLARE_VR_TRAITS(EVR_DT, std::string)
DECLARE_VR_TRAITS(EVR_FD, Float64)
DECLARE_VR_TRAITS(EVR_FL, Float32)
DECLARE_VR_TRAITS(EVR_IS, Sint32)
DECLARE_VR_TRAITS(EVR_LO, std::string)
DECLARE_VR_TRAITS(EVR_LT, std::string)
DECLARE_VR_TRAITS(EVR_OB, std::vector<unsigned char>)
DECLARE_VR_TRAITS(EVR_OF, std::vector<unsigned char>)
DECLARE_VR_TRAITS(EVR_OW, std::vector<unsigned char>)
DECLARE_VR_TRAITS(EVR_PN, std::string)
DECLARE_VR_TRAITS(EVR_SH, std::string)
DECLARE_VR_TRAITS(EVR_SL, Sint32)
//DECLARE_VR_TRAITS(EVR_SQ
DECLARE_VR_TRAITS(EVR_SS, Sint16)
DECLARE_VR_TRAITS(EVR_ST, std::string)
DECLARE_VR_TRAITS(EVR_TM, std::string)
DECLARE_VR_TRAITS(EVR_UI, std::string)
DECLARE_VR_TRAITS(EVR_UL, Uint32)
DECLARE_VR_TRAITS(EVR_UN, std::vector<unsigned char>)
DECLARE_VR_TRAITS(EVR_US, Uint16)
DECLARE_VR_TRAITS(EVR_UT, std::string)
#undef DECLARE_VR_TRAITS
}
}
#endif // _4f556093_02e3_4659_9026_2b16bc2c8a51
|