32 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/ofstd/ofstream.h" 35 #include "dcmtk/ofstd/ofstring.h" 42 #define DCM_UndefinedTagKey DcmTagKey(0xffff, 0xffff) 78 void set(Uint16 g, Uint16 e);
393 return !(*
this == key);
411 return (*
this < key) || (*
this == key);
417 return (*
this > key) || (*
this == key);
Uint16 getElement() const
returns element number
class maintaining a attribute tag (group and element number)
OFBool isPrivateReservation() const
returns true, if tag is a private reservation tag of the form (gggg,00xx) with gggg being odd and xx ...
friend STD_NAMESPACE ostream & operator<<(STD_NAMESPACE ostream &s, const DcmTagKey &k)
stream output operator for tag keys
DcmTagKey()
default constructor
Uint32 hash() const
generate a simple hash code for this attribute tag, used for fast look-up in the DICOM dictionary ...
Uint16 getGroup() const
returns group number
virtual ~DcmTagKey()
destructor
Uint16 group
tag group number
void set(const DcmTagKey &key)
set value to given tag key
OFString toString() const
convert tag key to string having the form "(gggg,eeee)".
OFBool isPrivate() const
returns true if the tag key is private, ie.
OFBool hasValidGroup() const
returns true, if group is valid (permitted in DICOM files).
int elementLT(const DcmTagKey &key) const
less-than operation comparing only element numbers
void setGroup(Uint16 g)
set group to given number
int operator==(const DcmTagKey &key) const
Comparison operator.
int elementEQ(const DcmTagKey &key) const
comparison operation comparing only element numbers
OFBool isGroupLength() const
checks whether the tag key is a valid group length element.
DcmTagKey & operator=(const DcmTagKey &key)
assignment operator for initializing this tag key from an existing one.
Uint16 element
tag element number
int operator<=(const DcmTagKey &key) const
'less or equal' operator.
void setElement(Uint16 e)
set element to given number
int operator<(const DcmTagKey &key) const
'less than' operator.
int groupEQ(const DcmTagKey &key) const
comparison operation comparing only group numbers
OFBool isSignableTag() const
returns true if a data element with the given tag key can be digitally signed, false otherwise ...
int groupGT(const DcmTagKey &key) const
greater-than operation comparing only group numbers
a simple string class that implements a subset of std::string.
int operator!=(const DcmTagKey &key) const
negation operator.
int operator>=(const DcmTagKey &key) const
'greater or equal' operator.
int groupLT(const DcmTagKey &key) const
less-than operation comparing only group numbers
int operator>(const DcmTagKey &key) const
'greater than' operator.
int elementGT(const DcmTagKey &key) const
greater-than operation comparing only element numbers