GDCM  2.4.5
Public Member Functions | Friends | List of all members
gdcm::Item Class Reference

Class to represent an Item A component of the value of a Data Element that is of Value Representation Sequence of Items. An Item contains a Data Set . See PS 3.5 7.5.1 Item Encoding Rules Each Item of a Data Element of VR SQ shall be encoded as a DICOM Standart Data Element with a specific Data Element Tag of Value (FFFE,E000). The Item Tag is followed by a 4 byte Item Length field encoded in one of the following two ways Explicit/ Implicit. More...

#include <gdcmItem.h>

Inheritance diagram for gdcm::Item:
Inheritance graph
[legend]
Collaboration diagram for gdcm::Item:
Collaboration graph
[legend]

Public Member Functions

 Item ()
 
 Item (Item const &val)
 
void Clear ()
 
bool FindDataElement (const Tag &t) const
 
const DataElementGetDataElement (const Tag &t) const
 
template<typename TDE >
VL GetLength () const
 
const DataSetGetNestedDataSet () const
 
DataSetGetNestedDataSet ()
 
void InsertDataElement (const DataElement &de)
 
template<typename TDE , typename TSwap >
std::istream & Read (std::istream &is)
 
void SetNestedDataSet (const DataSet &nested)
 
template<typename TDE , typename TSwap >
const std::ostream & Write (std::ostream &os) const
 
- Public Member Functions inherited from gdcm::DataElement
 DataElement (const Tag &t=Tag(0), const VL &vl=0, const VR &vr=VR::INVALID)
 
 DataElement (const DataElement &_val)
 
void Clear ()
 Clear Data Element (make Value empty and invalidate Tag & VR) More...
 
void Empty ()
 Make Data Element empty (no Value) More...
 
const ByteValueGetByteValue () const
 
template<typename TDE >
VL GetLength () const
 
const SequenceOfFragmentsGetSequenceOfFragments () const
 
SequenceOfFragmentsGetSequenceOfFragments ()
 
const TagGetTag () const
 Get Tag. More...
 
TagGetTag ()
 
Value const & GetValue () const
 Set/Get Value (bytes array, SQ of items, SQ of fragments): More...
 
ValueGetValue ()
 
SmartPointer< SequenceOfItemsGetValueAsSQ () const
 
const VLGetVL () const
 Get VL. More...
 
VLGetVL ()
 
VR const & GetVR () const
 
bool IsEmpty () const
 Check if Data Element is empty. More...
 
bool IsUndefinedLength () const
 return if Value Length if of undefined length More...
 
bool operator< (const DataElement &de) const
 
DataElementoperator= (const DataElement &de)
 
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
 

Friends

std::ostream & operator<< (std::ostream &os, const Item &val)
 

Additional Inherited Members

- Protected Types inherited from gdcm::DataElement
typedef SmartPointer< ValueValuePtr
 
- Protected Member Functions inherited from gdcm::DataElement
void SetValueFieldLength (VL vl, bool readvalues)
 
- Protected Attributes inherited from gdcm::DataElement
Tag TagField
 
ValuePtr ValueField
 
VL ValueLengthField
 
VR VRField
 

Detailed Description

Class to represent an Item A component of the value of a Data Element that is of Value Representation Sequence of Items. An Item contains a Data Set . See PS 3.5 7.5.1 Item Encoding Rules Each Item of a Data Element of VR SQ shall be encoded as a DICOM Standart Data Element with a specific Data Element Tag of Value (FFFE,E000). The Item Tag is followed by a 4 byte Item Length field encoded in one of the following two ways Explicit/ Implicit.

Note
ITEM: A component of the Value of a Data Element that is of Value Representation Sequence of Items. An Item contains a Data Set.
Examples:
ChangeSequenceUltrasound.cxx, DumpExamCard.cxx, DumpGEMSMovieGroup.cxx, DumpPhilipsECHO.cxx, DumpToshibaDTI.cxx, ExtractEncryptedContent.cxx, Extracting_All_Resolution.cxx, Fake_Image_Using_Stream_Image_Writer.cxx, gdcmrtionplan.cxx, gdcmrtplan.cxx, GenAllVR.cxx, GenFakeIdentifyFile.cxx, GenLongSeqs.cxx, GenSeqs.cxx, GetSequenceUltrasound.cxx, GetSubSequenceData.cxx, and LargeVRDSExplicit.cxx.

Constructor & Destructor Documentation

gdcm::Item::Item ( )
inline
gdcm::Item::Item ( Item const &  val)
inline

Member Function Documentation

void gdcm::Item::Clear ( )
inline
bool gdcm::Item::FindDataElement ( const Tag t) const
inline
const DataElement& gdcm::Item::GetDataElement ( const Tag t) const
inline
template<typename TDE >
VL gdcm::Item::GetLength ( ) const
const DataSet& gdcm::Item::GetNestedDataSet ( ) const
inline
DataSet& gdcm::Item::GetNestedDataSet ( )
inline
void gdcm::Item::InsertDataElement ( const DataElement de)
inline
template<typename TDE , typename TSwap >
std::istream& gdcm::Item::Read ( std::istream &  is)
inline
void gdcm::Item::SetNestedDataSet ( const DataSet nested)
inline
template<typename TDE , typename TSwap >
const std::ostream& gdcm::Item::Write ( std::ostream &  os) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Item val 
)
friend

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

Generated on Fri Sep 25 2015 17:58:31 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo