24 static const ossimTrace traceDebug(
"ossimRpfLocationSection:debug");
28 return data.
print(out);
34 m_componentLocation(0)
40 : m_componentId(record.m_componentId),
41 m_componentLength(record.m_componentLength),
42 m_componentLocation(record.m_componentLocation)
61 out << prefix <<
"ComponentId: " 63 << prefix <<
"ComponentIdString: " 65 << prefix <<
"ComponentLength: " 67 << prefix <<
"ComponentLocation: " 74 return data.
print(out);
220 out << prefix <<
"LocationSectionLength: " 222 << prefix <<
"LocationTableOffset: " 224 << prefix <<
"NumberOfComponentLocationRecords: " 226 << prefix <<
"LocationRecordLength: " 228 << prefix <<
"ComponentAggregateLength: " 233 std::vector<ossimRpfComponentLocationRecord>::const_iterator i =
237 (*i).print(out, prefix);
254 std::vector<ossimRpfComponentLocationRecord>::const_iterator component =
259 if((*component).m_componentId == static_cast<unsigned short>(componentId))
void addComponentRecord(const ossimRpfComponentLocationRecord &record)
Method to add a component location record.
ossim_int32 ossimErrorCode
const ossimRpfComponentLocationRecord & operator=(const ossimRpfComponentLocationRecord &rhs)
assignment operator
static const ossimErrorCode OSSIM_OK
ossimRpfLocationSection()
ossim_uint16 m_locationRecordLength
void writeStream(std::ostream &out)
Write method.
virtual ossimString getEntryString(ossim_int32 entry_number) const
ossim_uint32 m_componentLength
ossimRpfComponentLocationRecord()
default constructor
OSSIM_DLL ossimByteOrder byteOrder()
static const ossimErrorCode OSSIM_ERROR
unsigned short ossim_uint16
bool getComponent(ossimRpfComponentId componentId, ossimRpfComponentLocationRecord &result) const
void setLocationSectionLength(ossim_uint16 length)
std::vector< ossimRpfComponentLocationRecord > m_componentLocationList
std::vector< ossimRpfComponentLocationRecord > & getLocationRecordList()
Brief Direct access to the list of records.
void setLocationRecordLength(ossim_uint16 length)
virtual ossimErrorCode parseStream(std::istream &in, ossimByteOrder endianOrder)
ossim_uint32 m_componentAggregateLength
ossim_uint32 m_componentLocation
std::ostream & operator<<(std::ostream &out, const ossimRpfComponentLocationRecord &data)
unsigned int ossim_uint32
void setComponentAggregateLength(ossim_uint32 length)
bool hasComponent(ossimRpfComponentId componentId) const
ossim_uint16 m_locationSectionLength
ossim_uint16 m_componentId
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::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.
void writeStream(std::ostream &out)
Write method.
std::basic_istream< char > istream
Base class for char input streams.
ossim_uint32 m_locationTableOffset
static ossimRpfComponentIdLut * instance()
ossim_uint16 m_numberOfComponentLocationRecords
void setLocationTableOffset(ossim_uint32 offset)
ossimErrorCode parseStream(std::istream &in, ossimByteOrder endianOrder)
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
void clearFields()
Clears records and fields.
std::basic_ostream< char > ostream
Base class for char output streams.
void setNumberOfComponentLocationRecords(ossim_uint16 count)