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

Key of a dictionary of DICOM elements. More...

#include <ElementsDictionary.h>

Public Types

enum  Type { Tag, String, None }
 Type of the key.
 

Public Member Functions

 ElementsDictionaryKey ()
 Create a key with type equal to None.
 
 ElementsDictionaryKey (Tag const &value)
 Create a key with type equal to Tag.
 
 ElementsDictionaryKey (std::string const &value)
 Create a key with type equal to String.
 
Type const & get_type () const
 Return the type.
 
Tag const & get_tag () const
 Return the tag value or raise an exception if type is not Tag.
 
std::string const & get_string () const
 Return the string value or raise an exception if type is not String.
 
void set (Tag const value)
 Set the type to Tag.
 
void set (std::string const &value)
 Set the type to String.
 
bool operator< (ElementsDictionaryKey const &other) const
 Comparator.
 
bool operator== (ElementsDictionaryKey const &other) const
 Comparator.
 

Detailed Description

Key of a dictionary of DICOM elements.


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