ESA JPIP server  0.1
jpeg2000::PlaceHolder Class Reference

Contains the information of a place-holder. More...

#include <place_holder.h>

Collaboration diagram for jpeg2000::PlaceHolder:

Public Member Functions

 PlaceHolder ()
 Initializes the object. More...
 
 PlaceHolder (int id, bool is_jp2c, const FileSegment &header, uint64_t data_length)
 Initializes the object. More...
 
 PlaceHolder (const PlaceHolder &place_holder)
 Copy constructor. More...
 
template<typename T >
T & SerializeWith (T &stream)
 
PlaceHolderoperator= (const PlaceHolder &place_holder)
 Copy assignment. More...
 
int length () const
 Returns the length of the place-holder. More...
 
virtual ~PlaceHolder ()
 

Public Attributes

int id
 Place-holder identifier. More...
 
bool is_jp2c
 true if refers to a codestream. More...
 
FileSegment header
 File segment associated to the box header. More...
 
uint64_t data_length
 Length of the place-holder data. More...
 

Friends

ostream & operator<< (ostream &out, const PlaceHolder &place_holder)
 

Detailed Description

Contains the information of a place-holder.

This class can be printed and serialized.

Constructor & Destructor Documentation

jpeg2000::PlaceHolder::PlaceHolder ( )
inline

Initializes the object.

jpeg2000::PlaceHolder::PlaceHolder ( int  id,
bool  is_jp2c,
const FileSegment header,
uint64_t  data_length 
)
inline

Initializes the object.

Parameters
idPlace-holder identifier.
is_jp2cIndicates if is a codestream place-holder.
headerFile segment of the associated header.
data_lengthLength of the place-holder data.
jpeg2000::PlaceHolder::PlaceHolder ( const PlaceHolder place_holder)
inline

Copy constructor.

virtual jpeg2000::PlaceHolder::~PlaceHolder ( )
inlinevirtual

Member Function Documentation

int jpeg2000::PlaceHolder::length ( ) const
inline

Returns the length of the place-holder.

Here is the caller graph for this function:

PlaceHolder& jpeg2000::PlaceHolder::operator= ( const PlaceHolder place_holder)
inline

Copy assignment.

template<typename T >
T& jpeg2000::PlaceHolder::SerializeWith ( T &  stream)
inline

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
const PlaceHolder place_holder 
)
friend

Member Data Documentation

uint64_t jpeg2000::PlaceHolder::data_length

Length of the place-holder data.

FileSegment jpeg2000::PlaceHolder::header

File segment associated to the box header.

int jpeg2000::PlaceHolder::id

Place-holder identifier.

bool jpeg2000::PlaceHolder::is_jp2c

true if refers to a codestream.


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