PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
vr_info.cpp File Reference
#include "kcenon/pacs/encoding/vr_info.h"
#include <algorithm>
#include <array>
#include <cctype>
#include <unordered_map>
Include dependency graph for vr_info.cpp:

Go to the source code of this file.

Namespaces

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

Functions

VR Information Lookup
const vr_infokcenon::pacs::encoding::get_vr_info (vr_type vr)
 Retrieves comprehensive metadata for a VR type.
 
Value Validation Functions
bool kcenon::pacs::encoding::validate_value (vr_type vr, std::span< const uint8_t > data)
 Validates binary data against VR encoding rules.
 
bool kcenon::pacs::encoding::validate_string (vr_type vr, std::string_view value)
 Validates a string value against VR encoding rules.
 
Padding Utilities
std::vector< uint8_t > kcenon::pacs::encoding::pad_to_even (vr_type vr, std::span< const uint8_t > data)
 Pads data to even length as required by DICOM.
 
std::string kcenon::pacs::encoding::trim_padding (vr_type vr, std::string_view value)
 Removes trailing padding characters from a string value.
 
Character Set Validation
bool kcenon::pacs::encoding::is_valid_charset (vr_type vr, std::string_view value)
 Validates that a string uses only allowed characters for its VR.