OFFIS DCMTK
Version 3.6.0
|
a class representing a DICOM Value Representation More...
Public Member Functions | |
DcmVR () | |
default constructor | |
DcmVR (DcmEVR evr) | |
constructor More... | |
DcmVR (const char *vrName) | |
constructor More... | |
DcmVR (const DcmVR &avr) | |
copy constructor More... | |
void | setVR (DcmEVR evr) |
assign new VR value More... | |
void | setVR (const char *vrName) |
assign new VR value by name More... | |
void | setVR (const DcmVR &avr) |
assign new VR value More... | |
DcmVR & | operator= (const DcmVR &arg) |
copy assignment operator More... | |
DcmEVR | getEVR () const |
get enumerated VR managed by this object More... | |
DcmEVR | getValidEVR () const |
get enumerated standard VR managed by this object. More... | |
const char * | getVRName () const |
get symbolic VR name for this object More... | |
const char * | getValidVRName () const |
get symbolic standard VR name for this object If this object manages a non-standard, internal VR such as EVR_ox, this method returns the name of the VR to which the internal VR will be mapped when writing the DICOM object. More... | |
size_t | getValueWidth () const |
compute the size for non-empty values of this VR. More... | |
OFBool | isStandard () const |
returns true if VR is a standard DICOM VR More... | |
OFBool | isForInternalUseOnly () const |
returns true if VR is for internal use only More... | |
OFBool | isaString () const |
returns true if VR represents a string More... | |
OFBool | usesExtendedLengthEncoding () const |
returns true if VR uses an extended length encoding for explicit transfer syntaxes More... | |
OFBool | isEquivalent (const DcmVR &avr) const |
check if VRs are equivalent VRs are considered equivalent if equal or if one of them is an internal VR and the other one is a possible standard VR to which the internal one maps. More... | |
Uint32 | getMinValueLength () const |
return minimum length of a value with this VR (in bytes), assuming single byte characters More... | |
Uint32 | getMaxValueLength () const |
return maximum length of a value with this VR (in bytes), assuming single byte characters More... | |
Private Attributes | |
DcmEVR | vr |
the enumerated VR value | |
|
inline |
|
inline |
|
inline |
|
inline |
get enumerated VR managed by this object
Definition at line 257 of file dcvr.h.
References getMaxValueLength(), getMinValueLength(), getValidEVR(), getValidVRName(), getValueWidth(), getVRName(), isaString(), isEquivalent(), isForInternalUseOnly(), isStandard(), usesExtendedLengthEncoding(), and vr.
Referenced by DcmTag::getEVR(), and DcmDictEntry::getEVR().
Uint32 DcmVR::getMaxValueLength | ( | ) | const |
return maximum length of a value with this VR (in bytes), assuming single byte characters
Referenced by getEVR().
Uint32 DcmVR::getMinValueLength | ( | ) | const |
return minimum length of a value with this VR (in bytes), assuming single byte characters
Referenced by getEVR().
DcmEVR DcmVR::getValidEVR | ( | ) | const |
get enumerated standard VR managed by this object.
If this object manages a non-standard, internal VR such as EVR_ox, this method returns the enumerated VR to which the internal VR will be mapped when writing the DICOM object.
Referenced by getEVR().
const char* DcmVR::getValidVRName | ( | ) | const |
get symbolic standard VR name for this object If this object manages a non-standard, internal VR such as EVR_ox, this method returns the name of the VR to which the internal VR will be mapped when writing the DICOM object.
Referenced by getEVR().
size_t DcmVR::getValueWidth | ( | ) | const |
compute the size for non-empty values of this VR.
For fixed size VRs such as OW, US, SL, the method returns the size of each value, in bytes. For variable length VRs (strings), it returns 1. For internal VRs it returns 0.
Referenced by getEVR().
const char* DcmVR::getVRName | ( | ) | const |
get symbolic VR name for this object
Referenced by getEVR(), and DcmTag::getVRName().
OFBool DcmVR::isaString | ( | ) | const |
returns true if VR represents a string
Referenced by getEVR(), and DcmObject::isaString().
OFBool DcmVR::isEquivalent | ( | const DcmVR & | avr | ) | const |
check if VRs are equivalent VRs are considered equivalent if equal or if one of them is an internal VR and the other one is a possible standard VR to which the internal one maps.
avr | VR to compare with |
Referenced by getEVR().
OFBool DcmVR::isForInternalUseOnly | ( | ) | const |
returns true if VR is for internal use only
Referenced by getEVR().
OFBool DcmVR::isStandard | ( | ) | const |
returns true if VR is a standard DICOM VR
Referenced by getEVR().
void DcmVR::setVR | ( | DcmEVR | evr | ) |
void DcmVR::setVR | ( | const char * | vrName | ) |
assign new VR value by name
vrName | symbolic name of value representation |
|
inline |
OFBool DcmVR::usesExtendedLengthEncoding | ( | ) | const |
returns true if VR uses an extended length encoding for explicit transfer syntaxes
Referenced by getEVR().