odil
C++11libraryfortheDICOMstandard
Public Member Functions | Public Attributes | List of all members
odil::Tag Class Reference

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. More...
 
 Tag (char const *string)
 Create a tag based on its name or string representation of its numeric value. More...
 
bool is_private () const
 Test whether the tag is private.
 
std::string get_name () const
 Return the name of the tag. More...
 
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.
 

Detailed Description

A DICOM element tag.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.


The documentation for this class was generated from the following files: