Odil
A C++11 library for the DICOM standard
|
Key of a dictionary of DICOM elements. More...
#include <ElementsDictionary.h>
Public Types | |
enum class | Type { Tag , String , None } |
Type of the key. More... | |
Public Member Functions | |
ElementsDictionaryKey () | |
Create a key with type equal to None. More... | |
ElementsDictionaryKey (Tag const &value) | |
Create a key with type equal to Tag. More... | |
ElementsDictionaryKey (std::string const &value) | |
Create a key with type equal to String. More... | |
Type const & | get_type () const |
Return the type. More... | |
Tag const & | get_tag () const |
Return the tag value or raise an exception if type is not Tag. More... | |
std::string const & | get_string () const |
Return the string value or raise an exception if type is not String. More... | |
void | set (Tag const value) |
Set the type to Tag. More... | |
void | set (std::string const &value) |
Set the type to String. More... | |
bool | operator< (ElementsDictionaryKey const &other) const |
Comparator. More... | |
bool | operator== (ElementsDictionaryKey const &other) const |
Comparator. More... | |
Key of a dictionary of DICOM elements.
|
strong |
odil::ElementsDictionaryKey::ElementsDictionaryKey | ( | ) |
Create a key with type equal to None.
odil::ElementsDictionaryKey::ElementsDictionaryKey | ( | Tag const & | value | ) |
Create a key with type equal to Tag.
odil::ElementsDictionaryKey::ElementsDictionaryKey | ( | std::string const & | value | ) |
Create a key with type equal to String.
std::string const & odil::ElementsDictionaryKey::get_string | ( | ) | const |
Return the string value or raise an exception if type is not String.
Tag const & odil::ElementsDictionaryKey::get_tag | ( | ) | const |
Return the tag value or raise an exception if type is not Tag.
Type const & odil::ElementsDictionaryKey::get_type | ( | ) | const |
Return the type.
bool odil::ElementsDictionaryKey::operator< | ( | ElementsDictionaryKey const & | other | ) | const |
Comparator.
bool odil::ElementsDictionaryKey::operator== | ( | ElementsDictionaryKey const & | other | ) | const |
Comparator.
void odil::ElementsDictionaryKey::set | ( | std::string const & | value | ) |
Set the type to String.