plastimatch
|
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>
Public Member Functions | |
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 |
Public Attributes | |
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 | ( | ) |
Metadata::~Metadata | ( | ) |
void Metadata::create_anonymous | ( | ) |
void Metadata::print_metadata | ( | ) | const |
Remove a key from the metadata, if the key exists.
Copy a list of strings of the form "XXXX,YYYY=string" into the metadata map.
Attach a parent to this metadata set. The parent metadata is used when there is no match in the child metadata.
Metadata::SMART_POINTER_SUPPORT | ( | Metadata | ) |
std::map<std::string, std::string> Metadata::m_data |
Metadata::Pointer Metadata::m_parent |