OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfLocationSection.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: MIT
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: Garrett Potts
8 //
9 // Description: Rpf support class
10 //
11 //********************************************************************
12 // $Id: ossimRpfLocationSection.h 16997 2010-04-12 18:53:48Z dburken $
13 #ifndef ossimRpfLocationSection_HEADER
14 #define ossimRpfLocationSection_HEADER
15 
16 #include <iosfwd>
17 #include <vector>
18 
22 
23 // 10 byte record
25 {
26 public:
27  friend std::ostream& operator<<(
29 
32 
35 
38 
49  const std::string& prefix=std::string()) const;
50 
52 
58  void writeStream(std::ostream& out);
59 
66 
72 
79 };
80 
82 {
83 public:
85  const ossimRpfLocationSection &data);
88 
90  ossimByteOrder endianOrder);
91 
97  void writeStream(std::ostream& out);
98 
109  const std::string& prefix=std::string()) const;
110 
116  bool hasComponent(ossimRpfComponentId componentId)const;
117 
118  bool getComponent(ossimRpfComponentId componentId,
119  ossimRpfComponentLocationRecord& result)const;
120 
129 
135 
137  void clearFields();
138 
140  std::vector<ossimRpfComponentLocationRecord>& getLocationRecordList();
141 
142 private:
143 
149 
151 
153 
155 
157 
164  std::vector<ossimRpfComponentLocationRecord> m_componentLocationList;
165 };
166 
167 #endif
void addComponentRecord(const ossimRpfComponentLocationRecord &record)
Method to add a component location record.
ossim_int32 ossimErrorCode
ossimRpfComponentId
const ossimRpfComponentLocationRecord & operator=(const ossimRpfComponentLocationRecord &rhs)
assignment operator
void writeStream(std::ostream &out)
Write method.
ossimRpfComponentLocationRecord()
default constructor
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)
friend std::ostream & operator<<(std::ostream &out, const ossimRpfLocationSection &data)
unsigned int ossim_uint32
void setComponentAggregateLength(ossim_uint32 length)
bool hasComponent(ossimRpfComponentId componentId) const
ossimByteOrder
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.
Definition: ossimIosFwd.h:20
friend std::ostream & operator<<(std::ostream &out, const ossimRpfComponentLocationRecord &data)
ossim_uint16 m_numberOfComponentLocationRecords
void setLocationTableOffset(ossim_uint32 offset)
ossimErrorCode parseStream(std::istream &in, ossimByteOrder endianOrder)
void clearFields()
Clears records and fields.
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
void setNumberOfComponentLocationRecords(ossim_uint16 count)