32 #include "dcmtk/config/osconfig.h" 33 #include "dcmtk/ofstd/ofcond.h" 34 #include "dcmtk/dcmdata/dctagkey.h" 35 #include "dcmtk/dcmdata/dcvr.h" 38 #define DcmTag_ERROR_TagName "Unknown Tag & Data" 71 DcmTag(Uint16 g, Uint16 e);
126 return * OFstatic_cast(
const DcmTagKey *,
this);
216 #define ItemTag (DcmTag(DCM_Item)) 217 #define InternalUseTag (DcmTag(DcmTagKey(0xfffe, 0xfffe))) Uint16 getElement() const
returns element number
class maintaining a attribute tag (group and element number)
const char * getTagName()
returns name of attribute tag.
OFCondition errorFlag
current error code, EC_Normal if a valid VR for the tag is known
char * tagName
name of this attribute tag, remains NULL unless getTagName() is called
DcmTagKey getXTag() const
returns a copy of the tag key by value
void updatePrivateCreator(const char *c)
replace privateCreator with copy of given string
Uint16 getGroup() const
returns group number
const char * getVRName() const
returns name of VR
DcmVR getVR() const
returns VR object by value
DcmTag & operator=(const DcmTag &tag)
copy assignment operator
this class encapsulates an attribute tag (group, element) and a VR.
OFBool isSignable() const
returns true if a data element with the given tag and VR can be digitally signed, false otherwise ...
static OFCondition findTagFromName(const char *name, DcmTag &value)
convert the given string to a DICOM tag value
void setPrivateCreator(const char *privCreator)
assigns a private creator code and deletes a possibly cached attribute name since the attribute name ...
OFCondition error() const
returns current status flag
a class representing a DICOM Value Representation
const char * getPrivateCreator() const
returns the current private creator string for this object if any, NULL otherwise.
Uint16 getGTag() const
returns tag group
DcmVR setVR(const DcmVR &avr)
set specific VR
DcmTag()
default constructor
OFBool isUnknownVR() const
returns true if the VR used for writing is "UN"
Uint16 getETag() const
returns tag element
void lookupVRinDictionary()
performs a look-up of the VR for the current tag key in the dictionary, under consideration of the pr...
DcmVR vr
VR of this attribute tag.
DcmEVR getEVR() const
get enumerated VR managed by this object
DcmEVR getEVR() const
returns VR code
const char * getVRName() const
get symbolic VR name for this object
General purpose class for condition codes.
char * privateCreator
private creator code, remains NULL unless setPrivateCreator() is called
void updateTagName(const char *c)
replace tagName with copy of given string