47 if ( layers && (layers < 1000) )
143 const std::string& prefix)
const 145 std::string pfx = prefix;
149 out << setiosflags(ios::left)
150 << pfx << std::setw(24) <<
"CETAG:" <<
getTagName() <<
"\n" 151 << pfx << std::setw(24) <<
"CEL:" <<
getTagLength() <<
"\n" 152 << pfx << std::setw(24) <<
"ORIG:" <<
m_orig <<
"\n" 153 << pfx << std::setw(24) <<
"NLEVELS_O:" <<
m_levels_o <<
"\n" 154 << pfx << std::setw(24) <<
"NBANDS_O:" <<
m_bands_o <<
"\n" 155 << pfx << std::setw(24) <<
"NLAYERS_O:" <<
m_layers_o <<
"\n";
160 out << pfx <<
"LAYER_ID[" << i << std::setw(14) <<
"]:" <<
m_layer[i].m_layer_id <<
"\n" 161 << pfx <<
"BITRATE[" << i << std::setw(15) <<
"]:" <<
m_layer[i].m_bitrate <<
"\n";
167 out << pfx << std::setw(24) <<
"NLEVELS_I:" <<
m_nlevels_i <<
"\n" 168 << pfx << std::setw(24) <<
"NBANDS_I_SIZE:" <<
m_nbands_i <<
"\n" 169 << pfx << std::setw(24) <<
"NLAYERS_I:" <<
m_nlayers_i <<
"\n";
191 m_orig[0] = 0x30 + origin;
218 if ( ( bands >= 1 ) && ( bands <= 16384 ) )
233 if ( ( layers >= 1 ) && ( layers <= 999 ) )
267 if ( ( bands >= 1 ) && ( bands <= 16384 ) )
282 if ( ( layers >= 1 ) && ( layers <= 999 ) )
297 if ( index <
m_layer.size() && (
id <= 998 ) )
312 if ( index <
m_layer.size() && ( bitRate >= 0.0 ) && ( bitRate <= 37.0 ) )
char m_levels_o[NLEVELS_O_SIZE+1]
FIELD: NLEVELS_O required 2 bytes 00 - 32 Number of wavelet levels in original image.
virtual const std::string & getTagName() const
This will return the name of the registered tag for this user defined header.
RTTI_DEF1(ossimNitfJ2klraTag, "ossimNitfJ2klraTag", ossimNitfRegisteredTag)
char m_orig[ORIG_SIZE+1]
FIELD: ORIG.
virtual void clearFields()
Clears all string fields within the record to some default nothingness.
virtual void writeStream(std::ostream &out)
Write method.
bool setOrigin(ossim_uint32 origin)
Sets origin:
virtual ossim_uint32 getSizeInBytes() const
bool setBandsI(ossim_uint32 bands)
Sets the number of bands in this image.
std::vector< ossimJ2klraLayer > m_layer
repeating fields
ossim_uint32 toUInt32() const
ossim_uint32 getOriginNumber() const
virtual void setTagLength(ossim_uint32 length)
Set the tag length.
char m_nbands_i[NBANDS_I_SIZE+1]
FIELD: NBANDS_I Conditional 5 bytes if ORIG=1, 3,or 9.
virtual ossim_uint32 getTagLength() const
Returns the length in bytes of the tag from the CEL or REL field.
static ossimString convertToDoubleString(const ossim_float64 &aValue, ossim_uint32 precision, ossim_uint32 size)
This method takes a value and converts to a string of size with requested precision with a '0' fill...
bool setBandsO(ossim_uint32 bands)
Sets the number of bands in the original image.
virtual void parseStream(std::istream &in)
Parse method.
std::string::size_type size() const
char m_bands_o[NBANDS_O_SIZE+1]
FIELD: NBANDS_O required 5 bytes 00000 - 16384 Number of bands in original image. ...
unsigned int ossim_uint32
bool setLayerBitRate(ossim_uint32 index, ossim_float64 bitRate)
Sets the bitrate from index.
bool setLevelsO(ossim_uint32 levels)
Sets the number of wavelet levels in the original image.
static ossimString convertToUIntString(ossim_uint32 aValue, ossim_uint32 size)
This method takes a value and converts to a string of size with with a '0' fill.
char m_layers_o[NLAYERS_O_SIZE+1]
FIELD: NLAYERS_O required 3 bytes 000 - 999 Number of layers in original image.
std::basic_istream< char > istream
Base class for char input streams.
bool setLevelsI(ossim_uint32 levels)
Sets the number of wavelet levels in this image.
ossim_uint32 getNumberOfLayersOriginal() const
char m_nlayers_i[NLAYERS_I_SIZE+1]
FIELD: NLAYERS_I Conditional 3 bytes if ORIG=1, 3, or 9.
bool setLayersI(ossim_uint32 layers)
Sets the number of layers in this image.
virtual std::ostream & print(std::ostream &out, const std::string &prefix) const
Print method that outputs a key/value type format adding prefix to keys.
bool setLayersO(ossim_uint32 layers)
Sets the number of layers in the original image.
ossimNitfJ2klraTag()
default constructor
char m_nlevels_i[NLEVELS_I_SIZE+1]
FIELD: NLEVELS_I Conditional 2 bytes if ORIG=1, 3, or 9.
std::basic_ostream< char > ostream
Base class for char output streams.
const std::string & string() const
bool setLayerId(ossim_uint32 index, ossim_uint32 id)
Sets the layer id for index.