20 std::string(
"Invalid type ") +
22 std::string(
" for VR ") +
40 constexpr
VR() : m_data() {}
42 explicit constexpr
VR(value_type value) : m_data{ .
value = value } {}
43 explicit constexpr
VR(
char c1,
char c2) : m_data{ .
characters = {c1, c2} } {}
44 explicit VR(
const std::string& chars) : m_data{ .
characters = {chars[0], chars[1]} } {}
52 std::string
name()
const;
54 std::string
str()
const;
66 friend std::ostream&
operator<<(std::ostream& os,
const VR& tag);
82 if (!vr::manipulator_is_valid_for<T>(m_data.value)) {
bool operator<(const VR &other) const
bool operator!=(const VR &other) const
value_type value
Definition: vr.h:32
constexpr VR(value_type value)
Definition: vr.h:42
bool needs_two_byte_padding() const
friend std::ostream & operator<<(std::ostream &os, const VR &tag)
bool operator==(const VR &other) const
bool is_combined_vr() const
VR(const std::string &chars)
Definition: vr.h:44
const Data & data() const
Definition: vr.h:46
bool manipulator_is_valid_for(VR::value_type value)
Definition: vr.h:75
size_t block_size() const
Data & data()
Definition: vr.h:47
The base class for exceptions that are raised by the vega library.
Definition: vega.h:11
char characters[2]
Definition: vr.h:33
uint16_t value_type
Definition: vr.h:29
constexpr VR(Data data)
Definition: vr.h:41
std::string long_str() const
constexpr VR(char c1, char c2)
Definition: vr.h:43
InvalidValueManipulator(const VR &vr)
Definition: vr.h:18
constexpr VR()
Definition: vr.h:40
void validate_value_manipulator() const
Definition: vr.h:81