The Metadata class encapsulate DICOM metadata for a single series. It is implemented as a map from string to string, where the key string is of the form "XXXX,XXXX".
More...
#include <metadata.h>
|
| | SMART_POINTER_SUPPORT (Metadata) |
| |
| | Metadata () |
| |
| | ~Metadata () |
| |
| std::string | make_key (unsigned short key1, unsigned short key2) const |
| |
| const std::string & | get_metadata (const std::string &key) const |
| |
| const std::string & | get_metadata (unsigned short key1, unsigned short key2) const |
| |
| void | set_metadata (const std::string &key, const std::string &val) |
| |
| void | set_metadata (unsigned short key1, unsigned short key2, const std::string &val) |
| |
| void | set_metadata (const std::vector< std::string > &metadata) |
| | Copy a list of strings of the form "XXXX,YYYY=string" into the metadata map.
|
| |
| void | set_parent (const Metadata::Pointer &parent) |
| | Attach a parent to this metadata set. The parent metadata is used when there is no match in the child metadata.
|
| |
| void | remove_metadata (unsigned short key1, unsigned short key2) |
| | Remove a key from the metadata, if the key exists.
|
| |
| void | create_anonymous () |
| |
| void | print_metadata () const |
| |
|
| Metadata::Pointer | m_parent |
| |
| std::map< std::string, std::string > | m_data |
| |
The Metadata class encapsulate DICOM metadata for a single series. It is implemented as a map from string to string, where the key string is of the form "XXXX,XXXX".
◆ Metadata()
◆ ~Metadata()
◆ create_anonymous()
| void Metadata::create_anonymous |
( |
| ) |
|
◆ get_metadata() [1/2]
| const std::string & Metadata::get_metadata |
( |
const std::string & | key | ) |
const |
◆ get_metadata() [2/2]
| const std::string & Metadata::get_metadata |
( |
unsigned short | key1, |
|
|
unsigned short | key2 ) const |
◆ make_key()
| std::string Metadata::make_key |
( |
unsigned short | key1, |
|
|
unsigned short | key2 ) const |
◆ print_metadata()
| void Metadata::print_metadata |
( |
| ) |
const |
◆ remove_metadata()
| void Metadata::remove_metadata |
( |
unsigned short | key1, |
|
|
unsigned short | key2 ) |
Remove a key from the metadata, if the key exists.
◆ set_metadata() [1/3]
| void Metadata::set_metadata |
( |
const std::string & | key, |
|
|
const std::string & | val ) |
◆ set_metadata() [2/3]
| void Metadata::set_metadata |
( |
const std::vector< std::string > & | metadata | ) |
|
Copy a list of strings of the form "XXXX,YYYY=string" into the metadata map.
◆ set_metadata() [3/3]
| void Metadata::set_metadata |
( |
unsigned short | key1, |
|
|
unsigned short | key2, |
|
|
const std::string & | val ) |
◆ set_parent()
| void Metadata::set_parent |
( |
const Metadata::Pointer & | parent | ) |
|
|
inline |
Attach a parent to this metadata set. The parent metadata is used when there is no match in the child metadata.
◆ SMART_POINTER_SUPPORT()
| Metadata::SMART_POINTER_SUPPORT |
( |
Metadata | | ) |
|
◆ m_data
| std::map<std::string, std::string> Metadata::m_data |
◆ m_parent
| Metadata::Pointer Metadata::m_parent |
The documentation for this class was generated from the following files: