19 #ifndef _HiRISE_Line_Cache_
20 #define _HiRISE_Line_Cache_
89 static const char*
const
121 {
return Cache::bytes_read ();}
193 {
return Cache::source ();}
301 virtual bool refill (
unsigned long max_amount = (
unsigned long)-1);
310 virtual void reset ();
339 (
char* begin = NULL,
char* end = NULL);
350 unsigned long long offset (
char* location)
const
unsigned long amount_used() const
An Image_Line contains a cache of observation channel image pixel data.
Definition: Image_Line.hh:112
A Line_Cache manages the data contents for an Image_Line.
Definition: Line_Cache.hh:83
virtual bool compressed_data() const
Tests if the image data is compressed.
Definition: Line_Cache.hh:143
unsigned int Next_Line_Number
The number of the next line available in the cache.
Definition: Line_Cache.hh:375
unsigned long long source_bytes() const
Gets the amount (bytes) of source data that has been used.
Definition: Line_Cache.hh:136
std::ostringstream Bad_Line_Description
Message describing the reason for a repaired line.
Definition: Line_Cache.hh:390
std::string Next_Bad_Line_Description
Message intended for the next line to be assembled.
Definition: Line_Cache.hh:401
unsigned int Line_Count
The count of lines logically found so far.
Definition: Line_Cache.hh:371
bool next_line()
Gets the next line of image data into the Image_Line being managed.
Definition: Line_Cache.cc:313
bool Synchronization_Lost
Has line synchronization been lost?
Definition: Line_Cache.hh:379
std::string bad_line_description() const
Gets the description of the bad line cause.
Definition: Line_Cache.cc:125
virtual unsigned long long decompressed_bytes() const
Gets the amount (bytes) of decompressed data that has been generated.
Definition: Line_Cache.hh:157
unsigned long long offset(char *location) const
Gets the source offset location of a cache location.
Definition: Line_Cache.hh:350
virtual unsigned long long bytes_read() const
Gets the total number of bytes read from the source stream.
Definition: Line_Cache.hh:120
unsigned long long Data_Bytes
The number of source data bytes used for line data.
Definition: Line_Cache.hh:367
unsigned int count() const
Gets the current line count.
Definition: Line_Cache.hh:174
virtual void reset()
Resets the cache to its empty state and the line structure to match the current structure of the mana...
Definition: Line_Cache.cc:794
virtual unsigned long long compressed_bytes() const
Gets the amount (bytes) of compressed data that has been processed.
Definition: Line_Cache.hh:150
Image_Line * Line
Image_Line being managed.
Definition: Line_Cache.hh:360
static const char *const ID
Class identification name with source code version and date.
Definition: Line_Cache.hh:90
bool synchronization_lost()
Check for lost line synchronization.
Definition: Line_Cache.hh:220
virtual std::istream & source() const
Gets the data source stream.
Definition: Line_Cache.hh:192
virtual bool refill(unsigned long max_amount=(unsigned long) -1)
Refills the cache storage from the data source stream.
Definition: Line_Cache.cc:787