PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
dataset_charset.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2021-2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
20#ifndef PACS_ENCODING_DATASET_CHARSET_HPP
21#define PACS_ENCODING_DATASET_CHARSET_HPP
22
27
28#include <string>
29#include <string_view>
30
31namespace kcenon::pacs::encoding {
32
44[[nodiscard]] std::string get_decoded_string(
45 const core::dicom_dataset& ds,
46 core::dicom_tag tag,
47 std::string_view default_value = "");
48
61 core::dicom_dataset& ds,
62 core::dicom_tag tag,
63 vr_type vr,
64 std::string_view utf8_value);
65
66} // namespace kcenon::pacs::encoding
67
68#endif // PACS_ENCODING_DATASET_CHARSET_HPP
DICOM Character Set registry, ISO 2022 parser, and string decoder.
DICOM Dataset - ordered collection of Data Elements.
DICOM Tag representation (Group, Element pairs)
std::string get_decoded_string(const core::dicom_dataset &ds, core::dicom_tag tag, std::string_view default_value="")
Get a string value from dataset, decoded to UTF-8.
void set_encoded_string(core::dicom_dataset &ds, core::dicom_tag tag, vr_type vr, std::string_view utf8_value)
Set a string value in dataset, encoding from UTF-8.
vr_encoding vr