GDCM  2.2.3
Public Types | Public Member Functions | Static Public Member Functions
gdcm::SequenceOfFragments Class Reference

Class to represent a Sequence Of Fragments. More...

#include <gdcmSequenceOfFragments.h>

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

List of all members.

Public Types

typedef
FragmentVector::const_iterator 
ConstIterator
typedef std::vector< FragmentFragmentVector
typedef FragmentVector::iterator Iterator
typedef FragmentVector::size_type SizeType

Public Member Functions

 SequenceOfFragments ()
 constructor (UndefinedLength by default)
void AddFragment (Fragment const &item)
 Appends a Fragment to the already added ones.
Iterator Begin ()
ConstIterator Begin () const
void Clear ()
 Clear.
unsigned long ComputeByteLength () const
VL ComputeLength () const
Iterator End ()
ConstIterator End () const
bool GetBuffer (char *buffer, unsigned long length) const
bool GetFragBuffer (unsigned int fragNb, char *buffer, unsigned long &length) const
const FragmentGetFragment (SizeType num) const
VL GetLength () const
 Returns the SQ length, as read from disk.
SizeType GetNumberOfFragments () const
const BasicOffsetTableGetTable () const
BasicOffsetTableGetTable ()
bool operator== (const Value &val) const
void Print (std::ostream &os) const
template<typename TSwap >
std::istream & Read (std::istream &is)
template<typename TSwap >
std::istream & ReadPreValue (std::istream &is)
template<typename TSwap >
std::istream & ReadValue (std::istream &is)
void SetLength (VL length)
 Sets the actual SQ length.
template<typename TSwap >
std::ostream const & Write (std::ostream &os) const
bool WriteBuffer (std::ostream &os) const

Static Public Member Functions

static SmartPointer
< SequenceOfFragments
New ()

Detailed Description

Class to represent a Sequence Of Fragments.

Todo:
I do not enforce that Sequence of Fragments ends with a SQ end del
Examples:
FixBrokenJ2K.cxx, FixJAIBugJPEGLS.cxx, and GetJPEGSamplePrecision.cxx.

Member Typedef Documentation

typedef FragmentVector::const_iterator gdcm::SequenceOfFragments::ConstIterator
typedef FragmentVector::iterator gdcm::SequenceOfFragments::Iterator
typedef FragmentVector::size_type gdcm::SequenceOfFragments::SizeType

Constructor & Destructor Documentation

constructor (UndefinedLength by default)


Member Function Documentation

Appends a Fragment to the already added ones.

Examples:
FixBrokenJ2K.cxx.

Clear.

Implements gdcm::Value.

bool gdcm::SequenceOfFragments::GetBuffer ( char *  buffer,
unsigned long  length 
) const
bool gdcm::SequenceOfFragments::GetFragBuffer ( unsigned int  fragNb,
char *  buffer,
unsigned long &  length 
) const
VL gdcm::SequenceOfFragments::GetLength ( ) const [inline, virtual]

Returns the SQ length, as read from disk.

Implements gdcm::Value.

Examples:
FixJAIBugJPEGLS.cxx.
bool gdcm::SequenceOfFragments::operator== ( const Value val) const [inline, virtual]

Implements gdcm::Value.

void gdcm::SequenceOfFragments::Print ( std::ostream &  os) const [inline, virtual]

Reimplemented from gdcm::Object.

template<typename TSwap >
std::istream& gdcm::SequenceOfFragments::Read ( std::istream &  is) [inline]
template<typename TSwap >
std::istream& gdcm::SequenceOfFragments::ReadPreValue ( std::istream &  is) [inline]
template<typename TSwap >
std::istream& gdcm::SequenceOfFragments::ReadValue ( std::istream &  is) [inline]
void gdcm::SequenceOfFragments::SetLength ( VL  length) [inline, virtual]

Sets the actual SQ length.

Implements gdcm::Value.

template<typename TSwap >
std::ostream const& gdcm::SequenceOfFragments::Write ( std::ostream &  os) const [inline]
bool gdcm::SequenceOfFragments::WriteBuffer ( std::ostream &  os) const

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

Generated on Thu Nov 28 2013 07:02:52 for GDCM by doxygen 1.7.6.1
SourceForge.net Logo