PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
dataset_charset.h File Reference

Character set-aware string access for DICOM datasets. More...

#include <kcenon/pacs/core/dicom_dataset.h>
#include <kcenon/pacs/core/dicom_tag.h>
#include <kcenon/pacs/encoding/character_set.h>
#include <kcenon/pacs/encoding/vr_type.h>
#include <string>
#include <string_view>
Include dependency graph for dataset_charset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

std::string kcenon::pacs::encoding::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 kcenon::pacs::encoding::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.
 

Detailed Description

Character set-aware string access for DICOM datasets.

Provides free functions that combine dicom_dataset string access with character set decoding/encoding based on Specific Character Set (0008,0005).

These are free functions in kcenon::pacs::encoding rather than dicom_dataset member functions to avoid circular dependency between pacs_core and pacs_encoding.

See also
DICOM PS3.5 Section 6.1 - Support of Character Repertoires
Author
kcenon
Since
1.0.0

Definition in file dataset_charset.h.