43 static ossimTrace traceDebug(
"ossimRpfHeader:debug");
46 static const ossimString HEADER_SECTION_LENGTH_KW =
"HeaderSectionLength";
47 static const ossimString NEW_REP_UP_INDICATOR_KW =
"NewRepUpIndicator";
48 static const ossimString GOV_SPEC_NUMBER_KW =
"GovSpecNumber";
49 static const ossimString GOV_SPEC_DATE_KW =
"GovSpecDate";
50 static const ossimString SECURITY_CLASSIFICATION_KW =
"SecurityClassification";
51 static const ossimString COUNTRY_CODE_KW =
"CountryCode";
52 static const ossimString SECURITY_RELEASE_MARKING_KW =
"SecurityReleaseMarking";
58 m_littleBigEndianIndicator(0x00),
59 m_headerSectionLength(48),
61 m_newRepUpIndicator(0),
64 m_securityClassification(),
66 m_securityReleaseMarking(),
88 m_littleBigEndianIndicator(obj.m_littleBigEndianIndicator),
89 m_headerSectionLength(obj.m_headerSectionLength),
91 m_newRepUpIndicator(obj.m_newRepUpIndicator),
94 m_securityClassification(),
96 m_securityReleaseMarking(),
97 m_locSectionLoc(obj.m_locSectionLoc),
174 std::streamoff saveGet = in.tellg();
177 in.seekg(saveGet, ios::beg);
187 <<
"ossimRpfHeader::writeStream writing in big endian even though" 188 <<
" the m_littleBigEndianIndicator is set to little endian." 224 std::streampos pos = out.tellp();
233 out << prefix <<
"byte_order: " 235 << prefix << HEADER_SECTION_LENGTH_KW <<
": " 239 << prefix << NEW_REP_UP_INDICATOR_KW <<
": " 241 << prefix << GOV_SPEC_NUMBER_KW <<
": " 243 << prefix << GOV_SPEC_DATE_KW <<
": " 245 << prefix << SECURITY_CLASSIFICATION_KW <<
": " 247 << prefix << COUNTRY_CODE_KW <<
": " 249 << prefix << SECURITY_RELEASE_MARKING_KW <<
": " 254 out << prefix <<
"LocSectionLoc: " 608 delete tempSubheader;
720 delete tempSubheader;
826 const char* lookup = 0;
829 lookup = kwl.
find(prefix, NEW_REP_UP_INDICATOR_KW);
836 lookup = kwl.
find(prefix, GOV_SPEC_NUMBER_KW);
843 lookup = kwl.
find(prefix, GOV_SPEC_DATE_KW);
850 lookup = kwl.
find(prefix, SECURITY_CLASSIFICATION_KW);
857 lookup = kwl.
find(prefix, COUNTRY_CODE_KW);
864 lookup = kwl.
find(prefix, SECURITY_RELEASE_MARKING_KW);
ossimErrorCode parseStream(std::istream &in, ossimByteOrder byteOrder)
Represents serializable keyword/value map.
static const ossimErrorCode OSSIM_OK
std::basic_ifstream< char > ifstream
Class for char input file streams.
void writeStream(std::ostream &out)
Write method.
const char * find(const char *key) const
ossimErrorCode parseStream(std::istream &in, ossimByteOrder byteOrder)
OSSIM_DLL ossimByteOrder byteOrder()
bool getComponent(ossimRpfComponentId componentId, ossimRpfComponentLocationRecord &result) const
ossimErrorCode parseStream(ossim::istream &in, ossimByteOrder byteOrder)
virtual ossimErrorCode parseStream(std::istream &in, ossimByteOrder endianOrder)
ossim_uint32 m_componentLocation
void setNumberOfFileIndexRecords(ossim_uint32 numberOfIndexRecords)
std::string::size_type size() const
ossimErrorCode parseStream(std::istream &in, ossimByteOrder byteOrder)
std::string::iterator begin()
unsigned int ossim_uint32
ossimErrorCode parseStream(std::istream &in, ossimByteOrder byteOrder)
bool hasComponent(ossimRpfComponentId componentId) const
std::ostream & print(std::ostream &out, const std::string &prefix=std::string()) const
print method that outputs a key/value type format adding prefix to keys.
std::basic_istream< char > istream
Base class for char input streams.
static void setField(void *fieldDestination, const ossimString &src, std::streamsize width, std::ios_base::fmtflags ioflags=std::ios::left, char fill=' ')
Sets a field with a given string, width, and IOS flags.
void setNumberOfPathnames(ossim_uint32 numberOfPathnames)
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
static const char * FILENAME_KW
void setNumberOfEntries(ossim_uint32 numberOfEntries)
unsigned char ossim_uint8
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.