27 out <<
"theTableId: " << data.
theTableId << std::endl
45 :theTableId(rhs.theTableId),
46 theNumberOfCompressionLookupRecords(rhs.theNumberOfCompressionLookupRecords),
47 theNumberOfValuesPerCompressionLookup(rhs.theNumberOfValuesPerCompressionLookup),
48 theCompressionLookupValueBitLength(rhs.theCompressionLookupValueBitLength),
49 theCompressionLookupTableOffset(rhs.theCompressionLookupTableOffset),
190 for(idx = 0; idx <
theTable.size(); ++idx)
197 if(
theTable[idx].getDataLengthInBytes()>0)
200 in.read((
char*)(
theTable[idx].theData),
theTable[idx].getDataLengthInBytes());
208 return this->
print(out, std::string(
""));
214 std::string pfx = prefix;
217 out << std::setiosflags(std::ios::left)
218 << pfx << std::setw(24) <<
"image_rows:" 220 << pfx << std::setw(24) <<
"codes_per_row:" 222 << pfx << std::setw(24) <<
"codebit_length:" 224 << pfx << std::setw(24) <<
"algorithm_id:" 226 << pfx << std::setw(24)
229 << pfx << std::setw(24)
230 <<
"offset_record_length:" 237 std::string tblPfx = pfx;
242 out << tblPfx << std::setw(24) <<
"id:" 244 << tblPfx << std::setw(24) <<
"lookup_records:" 245 <<
theTable[idx].theNumberOfCompressionLookupRecords <<
"\n" 246 << tblPfx << std::setw(24) <<
"values_per_lookup:" 247 <<
theTable[idx].theNumberOfValuesPerCompressionLookup <<
"\n" 248 << tblPfx << std::setw(24) <<
"lookup_bit_length:" 249 <<
theTable[idx].theCompressionLookupValueBitLength <<
"\n" 250 << tblPfx << std::setw(24) <<
"lookup_table_offset:" 251 <<
theTable[idx].theCompressionLookupTableOffset <<
"\n";
267 out << std::setiosflags(std::ios::left)
279 std::string tblPfx =
"table";
283 out << tblPfx<<
"id:" 285 << tblPfx <<
"lookup_records:"<<
theTable[idx].theNumberOfCompressionLookupRecords <<
"\n" 286 << tblPfx <<
"values_per_lookup:"<<
theTable[idx].theNumberOfValuesPerCompressionLookup <<
"\n" 287 << tblPfx <<
"lookup_bit_length:"<<
theTable[idx].theCompressionLookupValueBitLength <<
"\n" 288 << tblPfx <<
"lookup_table_offset:"<<
theTable[idx].theCompressionLookupTableOffset <<
"\n";
296 kwl.
add(prefix, kwlTemp);
~ossimNitfVqCompressionOffsetTableData()
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
Represents serializable keyword/value map.
static ossimString toString(bool aValue)
Numeric to string methods.
ossim_uint32 theNumberOfCompressionLookupRecords
void parseStream(std::istream &in)
ossim_uint16 theCompressionLookupValueBitLength
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ostream & operator<<(ostream &out, const ossimAxes &axes)
unsigned int ossim_uint32
ossim_uint16 theNumberOfValuesPerCompressionLookup
ossimByteOrder getSystemEndianType() const
ossim_uint32 theCompressionLookupTableOffset
ossim_uint32 getDataLengthInBytes() const
std::basic_istream< char > istream
Base class for char input streams.
ossimNitfVqCompressionOffsetTableData()
virtual bool parseStream(ossim::istream &is, bool ignoreBinaryChars)
deprecated method
std::basic_istringstream< char > istringstream
Class for char input memory streams.
const ossimNitfVqCompressionOffsetTableData & operator=(const ossimNitfVqCompressionOffsetTableData &rhs)
unsigned char ossim_uint8
std::basic_ostream< char > ostream
Base class for char output streams.
const std::string & string() const