1 #ifndef _JPEG2000_PLACE_HOLDER_H_
2 #define _JPEG2000_PLACE_HOLDER_H_
47 this->is_jp2c = is_jp2c;
48 this->header = header;
49 this->data_length = data_length;
62 return (stream &
id & is_jp2c & header & data_length);
72 header = place_holder.
header;
80 out <<
"Id: " << place_holder.
id << endl;
81 out <<
"JP2C: " << (place_holder.
is_jp2c ?
"Yes" :
"No") << endl;
82 out <<
"Header: " << place_holder.
header << endl;
83 out <<
"Data length: " << place_holder.
data_length << endl;
93 return (44 + header.
length);
PlaceHolder()
Initializes the object.
Definition: place_holder.h:30
bool is_jp2c
true if refers to a codestream.
Definition: place_holder.h:22
Contains a set of classes to easy the handling of data and files, as well as the serialization.
Definition: data.h:9
Identifies a data segment of a file.
Definition: file_segment.h:20
Contains the information of a place-holder.
Definition: place_holder.h:18
uint64_t data_length
Length of the place-holder data.
Definition: place_holder.h:24
PlaceHolder(const PlaceHolder &place_holder)
Copy constructor.
Definition: place_holder.h:55
int length() const
Returns the length of the place-holder.
Definition: place_holder.h:91
Set of classes for handling (reading and indexing) image files with the format defined in the Part 1 ...
Definition: codestream_index.h:10
PlaceHolder(int id, bool is_jp2c, const FileSegment &header, uint64_t data_length)
Initializes the object.
Definition: place_holder.h:44
T & SerializeWith(T &stream)
Definition: place_holder.h:60
virtual ~PlaceHolder()
Definition: place_holder.h:96
int id
Place-holder identifier.
Definition: place_holder.h:21
FileSegment header
File segment associated to the box header.
Definition: place_holder.h:23
PlaceHolder & operator=(const PlaceHolder &place_holder)
Copy assignment.
Definition: place_holder.h:68
ostream & operator<<(ostream &out, const Request &request)
Definition: request.cc:65
uint64_t length
Length of the data segment.
Definition: file_segment.h:24