OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Public Attributes | Friends | List of all members
ossimNitfImageInfoRecordV2_1 Class Reference

#include <ossimNitfFileHeaderV2_1.h>

Public Member Functions

ossim_uint64 getHeaderLength () const
 
ossim_uint64 getImageLength () const
 
ossim_uint64 getTotalLength () const
 
void setSubheaderLength (ossim_uint32 length)
 
void setImageLength (ossim_uint64 length)
 

Public Attributes

char theImageSubheaderLength [7]
 Is a 6 byte numeric 000439-999999. More...
 
char theImageLength [11]
 Is a 10 byte numeric 0000000001-9999999999. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const ossimNitfImageInfoRecordV2_1 &data)
 

Detailed Description

Definition at line 22 of file ossimNitfFileHeaderV2_1.h.

Member Function Documentation

◆ getHeaderLength()

ossim_uint64 ossimNitfImageInfoRecordV2_1::getHeaderLength ( ) const

Definition at line 66 of file ossimNitfFileHeaderV2_1.cpp.

References theImageSubheaderLength, and ossimString::toUInt64().

Referenced by getTotalLength().

67 {
69 }
char theImageSubheaderLength[7]
Is a 6 byte numeric 000439-999999.
ossim_uint64 toUInt64() const

◆ getImageLength()

ossim_uint64 ossimNitfImageInfoRecordV2_1::getImageLength ( ) const

Definition at line 71 of file ossimNitfFileHeaderV2_1.cpp.

References theImageLength, and ossimString::toUInt64().

Referenced by getTotalLength().

72 {
74 }
char theImageLength[11]
Is a 10 byte numeric 0000000001-9999999999.
ossim_uint64 toUInt64() const

◆ getTotalLength()

ossim_uint64 ossimNitfImageInfoRecordV2_1::getTotalLength ( ) const

Definition at line 76 of file ossimNitfFileHeaderV2_1.cpp.

References getHeaderLength(), and getImageLength().

77 {
78  return (getHeaderLength() + getImageLength());
79 }

◆ setImageLength()

void ossimNitfImageInfoRecordV2_1::setImageLength ( ossim_uint64  length)

Definition at line 220 of file ossimNitfFileHeaderV2_1.cpp.

References theImageLength.

Referenced by ossimNitfWriter::writeBlockBandSeparate(), and ossimNitfWriter::writeBlockBandSequential().

221 {
222  std::ostringstream out;
223 
224  out << std::setw(10)
225  << std::setfill('0')
226  << std::setiosflags(ios::right)
227  << length;
228 
229  memcpy(theImageLength, out.str().c_str(), 10);
230  theImageLength[10] = '\0';
231 }
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
Definition: ossimIosFwd.h:35
char theImageLength[11]
Is a 10 byte numeric 0000000001-9999999999.

◆ setSubheaderLength()

void ossimNitfImageInfoRecordV2_1::setSubheaderLength ( ossim_uint32  length)

Definition at line 207 of file ossimNitfFileHeaderV2_1.cpp.

References theImageSubheaderLength.

Referenced by ossimNitfWriter::writeBlockBandSeparate(), and ossimNitfWriter::writeBlockBandSequential().

208 {
209  std::ostringstream out;
210 
211  out << std::setw(6)
212  << std::setfill('0')
213  << std::setiosflags(ios::right)
214  << length;
215 
216  memcpy(theImageSubheaderLength, out.str().c_str(), 6);
217  theImageSubheaderLength[6] = '\0';
218 }
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
Definition: ossimIosFwd.h:35
char theImageSubheaderLength[7]
Is a 6 byte numeric 000439-999999.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const ossimNitfImageInfoRecordV2_1 data 
)
friend

Definition at line 56 of file ossimNitfFileHeaderV2_1.cpp.

58 {
59  return out << "theImageSubheaderLength: "
61  << "\ntheImageLength: "
62  << data.theImageLength
63  << std::endl;
64 }
char theImageLength[11]
Is a 10 byte numeric 0000000001-9999999999.
char theImageSubheaderLength[7]
Is a 6 byte numeric 000439-999999.

Member Data Documentation

◆ theImageLength

char ossimNitfImageInfoRecordV2_1::theImageLength[11]

Is a 10 byte numeric 0000000001-9999999999.

Definition at line 43 of file ossimNitfFileHeaderV2_1.h.

Referenced by getImageLength(), operator<<(), ossimNitfFileHeaderV2_1::readImageInfoRecords(), and setImageLength().

◆ theImageSubheaderLength

char ossimNitfImageInfoRecordV2_1::theImageSubheaderLength[7]

Is a 6 byte numeric 000439-999999.

Definition at line 38 of file ossimNitfFileHeaderV2_1.h.

Referenced by getHeaderLength(), operator<<(), ossimNitfFileHeaderV2_1::readImageInfoRecords(), and setSubheaderLength().


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