PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
vr_type.h File Reference
#include <cstdint>
#include <optional>
#include <string_view>
Include dependency graph for vr_type.h:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::encoding
 

Enumerations

enum class  kcenon::pacs::encoding::vr_type : uint16_t {
  kcenon::pacs::encoding::AE = 0x4145 , kcenon::pacs::encoding::AS = 0x4153 , kcenon::pacs::encoding::CS = 0x4353 , kcenon::pacs::encoding::DA = 0x4441 ,
  kcenon::pacs::encoding::DS = 0x4453 , kcenon::pacs::encoding::DT = 0x4454 , kcenon::pacs::encoding::IS = 0x4953 , kcenon::pacs::encoding::LO = 0x4C4F ,
  kcenon::pacs::encoding::LT = 0x4C54 , kcenon::pacs::encoding::PN = 0x504E , kcenon::pacs::encoding::SH = 0x5348 , kcenon::pacs::encoding::ST = 0x5354 ,
  kcenon::pacs::encoding::TM = 0x544D , kcenon::pacs::encoding::UC = 0x5543 , kcenon::pacs::encoding::UI = 0x5549 , kcenon::pacs::encoding::UR = 0x5552 ,
  kcenon::pacs::encoding::UT = 0x5554 , kcenon::pacs::encoding::FL = 0x464C , kcenon::pacs::encoding::FD = 0x4644 , kcenon::pacs::encoding::SL = 0x534C ,
  kcenon::pacs::encoding::SS = 0x5353 , kcenon::pacs::encoding::UL = 0x554C , kcenon::pacs::encoding::US = 0x5553 , kcenon::pacs::encoding::OB = 0x4F42 ,
  kcenon::pacs::encoding::OD = 0x4F44 , kcenon::pacs::encoding::OF = 0x4F46 , kcenon::pacs::encoding::OL = 0x4F4C , kcenon::pacs::encoding::OV = 0x4F56 ,
  kcenon::pacs::encoding::OW = 0x4F57 , kcenon::pacs::encoding::UN = 0x554E , kcenon::pacs::encoding::AT = 0x4154 , kcenon::pacs::encoding::SQ = 0x5351 ,
  kcenon::pacs::encoding::SV = 0x5356 , kcenon::pacs::encoding::UV = 0x5556
}
 DICOM Value Representation (VR) types. More...
 

Functions

String Conversion Functions
constexpr std::string_view kcenon::pacs::encoding::to_string (vr_type vr) noexcept
 Converts a vr_type to its two-character string representation.
 
constexpr std::optional< vr_typekcenon::pacs::encoding::from_string (std::string_view str) noexcept
 Parses a two-character string to a vr_type.
 
VR Category Classification Functions
constexpr bool kcenon::pacs::encoding::is_string_vr (vr_type vr) noexcept
 Checks if a VR is a string type.
 
constexpr bool kcenon::pacs::encoding::is_binary_vr (vr_type vr) noexcept
 Checks if a VR is a binary/raw byte type.
 
constexpr bool kcenon::pacs::encoding::is_numeric_vr (vr_type vr) noexcept
 Checks if a VR is a numeric type.
 
constexpr bool kcenon::pacs::encoding::has_explicit_32bit_length (vr_type vr) noexcept
 Checks if a VR requires 32-bit length field in Explicit VR encoding.
 
Additional VR Utility Functions
constexpr std::size_t kcenon::pacs::encoding::fixed_length (vr_type vr) noexcept
 Gets the fixed size of a VR if applicable.
 
constexpr bool kcenon::pacs::encoding::is_fixed_length (vr_type vr) noexcept
 Checks if a VR has a fixed length.
 
constexpr char kcenon::pacs::encoding::padding_char (vr_type vr) noexcept
 Gets the padding character for a VR.
 

Detailed Description

Author
kcenon
Since
1.0.0

Definition in file vr_type.h.