Odil
A C++11 library for the DICOM standard
|
A DICOM element tag. More...
#include <Tag.h>
Public Member Functions | |
Tag (uint16_t group, uint16_t element) | |
Create a tag based on its group and element as two 16-bits words. | |
Tag (uint32_t tag=0) | |
Create a tag based on its group and element as one 32-bits word. | |
Tag (std::string const &string) | |
Create a tag based on its name or string representation of its numeric value. | |
Tag (char const *string) | |
Create a tag based on its name or string representation of its numeric value. | |
~Tag ()=default | |
Tag (Tag const &)=default | |
Tag (Tag &&)=default | |
Tag & | operator= (Tag const &)=default |
Tag & | operator= (Tag &&)=default |
bool | is_private () const |
Test whether the tag is private. | |
std::string | get_name () const |
Return the name of the tag. | |
bool | operator== (Tag const &other) const |
Equality test. | |
bool | operator!= (Tag const &other) const |
Difference test. | |
bool | operator< (Tag const &other) const |
Strict inferiority test. | |
bool | operator> (Tag const &other) const |
Strict superiority test. | |
bool | operator<= (Tag const &other) const |
Loose inferiority test. | |
bool | operator>= (Tag const &other) const |
Loose superiority test. | |
operator std::string () const | |
Convert to string. | |
Public Attributes | |
uint16_t | group |
Group of the tag. | |
uint16_t | element |
Element of the tag. | |
A DICOM element tag.
odil::Tag::Tag | ( | uint16_t | group, |
uint16_t | element | ||
) |
Create a tag based on its group and element as two 16-bits words.
odil::Tag::Tag | ( | uint32_t | tag = 0 | ) |
Create a tag based on its group and element as one 32-bits word.
odil::Tag::Tag | ( | std::string const & | string | ) |
Create a tag based on its name or string representation of its numeric value.
If the name cannot be found in the public data dictionary, or if the string is not the representation of a numeric value, a odil::Exception is raised.
odil::Tag::Tag | ( | char const * | string | ) |
Create a tag based on its name or string representation of its numeric value.
If the name cannot be found in the public data dictionary, or if the string is not the representation of a numeric value, a odil::Exception is raised.
std::string odil::Tag::get_name | ( | ) | const |
Return the name of the tag.
If the tag cannot be found in the public data dictionary, a odil::Exception is raised.
bool odil::Tag::is_private | ( | ) | const |
Test whether the tag is private.
odil::Tag::operator std::string | ( | ) | const |
Convert to string.
bool odil::Tag::operator!= | ( | Tag const & | other | ) | const |
Difference test.
bool odil::Tag::operator< | ( | Tag const & | other | ) | const |
Strict inferiority test.
bool odil::Tag::operator<= | ( | Tag const & | other | ) | const |
Loose inferiority test.
bool odil::Tag::operator== | ( | Tag const & | other | ) | const |
Equality test.
bool odil::Tag::operator> | ( | Tag const & | other | ) | const |
Strict superiority test.
bool odil::Tag::operator>= | ( | Tag const & | other | ) | const |
Loose superiority test.
uint16_t odil::Tag::element |
Element of the tag.
uint16_t odil::Tag::group |
Group of the tag.