|
GDCM 3.0.24
|
Class to represent a Data Element either Implicit or Explicit. More...
#include <gdcmDataElement.h>
Public Member Functions | |
| DataElement (const DataElement &_val) | |
| DataElement (const Tag &t=Tag(0), const VL &vl=0, const VR &vr=VR::INVALID) | |
| void | Clear () |
| Clear Data Element (make Value empty and invalidate Tag & VR) | |
| void | Empty () |
| Make Data Element empty (no Value) | |
| const ByteValue * | GetByteValue () const |
| template<typename TDE > | |
| VL | GetLength () const |
| SequenceOfFragments * | GetSequenceOfFragments () |
| const SequenceOfFragments * | GetSequenceOfFragments () const |
| Tag & | GetTag () |
| const Tag & | GetTag () const |
| Get Tag. | |
| Value & | GetValue () |
| Value const & | GetValue () const |
| Set/Get Value (bytes array, SQ of items, SQ of fragments): | |
| SmartPointer< SequenceOfItems > | GetValueAsSQ () const |
| VL & | GetVL () |
| const VL & | GetVL () const |
| Get VL. | |
| VR const & | GetVR () const |
| bool | IsEmpty () const |
| Check if Data Element is empty. | |
| bool | IsUndefinedLength () const |
| return if Value Length if of undefined length | |
| bool | operator< (const DataElement &de) const |
| DataElement & | operator= (const DataElement &)=default |
| bool | operator== (const DataElement &de) const |
| template<typename TDE , typename TSwap > | |
| std::istream & | Read (std::istream &is) |
| template<typename TDE , typename TSwap > | |
| std::istream & | ReadOrSkip (std::istream &is, std::set< Tag > const &skiptags) |
| template<typename TDE , typename TSwap > | |
| std::istream & | ReadPreValue (std::istream &is, std::set< Tag > const &skiptags) |
| template<typename TDE , typename TSwap > | |
| std::istream & | ReadValue (std::istream &is, std::set< Tag > const &skiptags) |
| template<typename TDE , typename TSwap > | |
| std::istream & | ReadValueWithLength (std::istream &is, VL &length, std::set< Tag > const &skiptags) |
| template<typename TDE , typename TSwap > | |
| std::istream & | ReadWithLength (std::istream &is, VL &length) |
| void | SetByteValue (const char *array, VL length) |
| void | SetTag (const Tag &t) |
| void | SetValue (Value const &vl) |
| void | SetVL (const VL &vl) |
| void | SetVLToUndefined () |
| void | SetVR (VR const &vr) |
| template<typename TDE , typename TSwap > | |
| const std::ostream & | Write (std::ostream &os) const |
Protected Types | |
| typedef SmartPointer< Value > | ValuePtr |
Protected Member Functions | |
| void | SetValueFieldLength (VL vl, bool readvalues) |
Protected Attributes | |
| Tag | TagField |
| ValuePtr | ValueField |
| VL | ValueLengthField |
| VR | VRField |
Friends | |
| std::ostream & | operator<< (std::ostream &_os, const DataElement &_val) |
Class to represent a Data Element either Implicit or Explicit.
DATA ELEMENT: A unit of information as defined by a single entry in the data dictionary. An encoded Information Object Definition (IOD) Attribute that is composed of, at a minimum, three fields: a Data Element Tag, a Value Length, and a Value Field. For some specific Transfer Syntaxes, a Data Element also contains a VR Field where the Value Representation of that Data Element is specified explicitly.
Design:
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
Return the Value of DataElement as a ByteValue (if possible)
Referenced by gdcm::Attribute< Group, Element, TVR, TVM >::SetFromDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::SetFromDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::SetFromDataElement(), gdcm::Element< TVR, TVM >::SetFromDataElement(), and gdcm::Element< TVR, VM::VM1_n >::SetFromDataElement().
|
inline |
| SequenceOfFragments * gdcm::DataElement::GetSequenceOfFragments | ( | ) |
| const SequenceOfFragments * gdcm::DataElement::GetSequenceOfFragments | ( | ) | const |
Return the Value of DataElement as a Sequence Of Fragments (if possible)
|
inline |
|
inline |
Get Tag.
Referenced by gdcm::DataSet::Insert(), gdcm::FileMetaInformation::Insert(), gdcm::CommandDataSet::Insert(), operator<(), gdcm::SequenceOfItems::Read(), gdcm::SequenceOfFragments::ReadValue(), gdcm::FileMetaInformation::Replace(), gdcm::CommandDataSet::Replace(), gdcm::Attribute< Group, Element, TVR, TVM >::SetFromDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::SetFromDataElement(), and gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::SetFromDataElement().
|
inline |
References gdcmAssertAlwaysMacro.
|
inline |
Set/Get Value (bytes array, SQ of items, SQ of fragments):
References gdcmAssertAlwaysMacro.
Referenced by gdcm::DataSet::InsertDataElement(), gdcm::Element< TVR, TVM >::SetFromDataElement(), and gdcm::Element< TVR, VM::VM1_n >::SetFromDataElement().
| SmartPointer< SequenceOfItems > gdcm::DataElement::GetValueAsSQ | ( | ) | const |
Interpret the Value stored in the DataElement. This is more robust (but also more expensive) to call this function rather than the simplest form: GetSequenceOfItems() It also return NULL when the Value is NOT of type SequenceOfItems
|
inline |
|
inline |
Get VL.
Referenced by gdcm::DataSet::InsertDataElement(), gdcm::SequenceOfItems::Read(), and gdcm::SequenceOfFragments::ReadValue().
|
inline |
Get VR do not set VR::SQ on bytevalue data element
Referenced by gdcm::Attribute< Group, Element, TVR, TVM >::GetAsDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::GetAsDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::GetAsDataElement(), gdcm::Element< TVR, TVM >::GetAsDataElement(), gdcm::Element< TVR, VM::VM1_n >::GetAsDataElement(), gdcm::Attribute< Group, Element, TVR, TVM >::SetFromDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::SetFromDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::SetFromDataElement(), gdcm::Element< TVR, TVM >::SetFromDataElement(), and gdcm::Element< TVR, VM::VM1_n >::SetFromDataElement().
|
inline |
Check if Data Element is empty.
Referenced by gdcm::DataSet::InsertDataElement(), gdcm::Attribute< Group, Element, TVR, TVM >::SetFromDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::SetFromDataElement(), and gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::SetFromDataElement().
|
inline |
return if Value Length if of undefined length
|
inline |
References GetTag().
|
default |
|
inline |
References TagField, ValueField, ValueLengthField, and VRField.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the byte value
Referenced by gdcm::Attribute< Group, Element, TVR, TVM >::GetAsDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::GetAsDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::GetAsDataElement(), gdcm::Element< TVR, TVM >::GetAsDataElement(), and gdcm::Element< TVR, VM::VM1_n >::GetAsDataElement().
|
inline |
Set Tag Use with cautious (need to match Part 6)
|
inline |
References gdcm::Value::GetLength().
|
protected |
|
inline |
Set VL Use with cautious (need to match Part 6), advanced user only
| void gdcm::DataElement::SetVLToUndefined | ( | ) |
|
inline |
Set VR Use with cautious (need to match Part 6), advanced user only
References gdcm::VR::IsVRFile().
Referenced by gdcm::Attribute< Group, Element, TVR, TVM >::GetAsDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::GetAsDataElement(), gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::GetAsDataElement(), gdcm::Element< TVR, TVM >::GetAsDataElement(), and gdcm::Element< TVR, VM::VM1_n >::GetAsDataElement().
|
inline |
|
friend |
|
protected |
Referenced by operator==().
|
protected |
Referenced by operator==().
|
protected |
Referenced by operator==().
|
protected |
Referenced by operator==().