PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
vr_info.h File Reference
#include "vr_type.h"
#include <cstdint>
#include <span>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for vr_info.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::pacs::encoding::vr_info
 Metadata structure containing comprehensive VR properties. More...
 

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.
 

Detailed Description

Author
kcenon
Since
1.0.0

Definition in file vr_info.h.