OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfReplaceUpdateTable.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // File: ossimRpfReplaceUpdateTable.cpp
4 //
5 // License: See top level LICENSE.txt file.
6 //
7 // Author: David Burken
8 //
9 // Description:
10 //
11 // Holds a table of RPF replace/update section subheader records.
12 //
13 // See MIL-STD-2411 for detailed information.
14 //
15 //----------------------------------------------------------------------------
16 // $Id: ossimRpfReplaceUpdateTable.cpp 20324 2011-12-06 22:25:23Z dburken $
17 
19 #include <iostream>
20 
22  :
23  m_table(0)
24 {
25 }
26 
28  :
29  m_table(obj.m_table)
30 {
31 }
32 
34  const ossimRpfReplaceUpdateTable& rhs)
35 {
36  if ( this != &rhs )
37  {
38  m_table = rhs.m_table;
39  }
40  return *this;
41 }
42 
44 {
45  m_table.push_back(record);
46 }
47 
49 {
50  m_table.clear();
51 }
52 
54  const std::string& prefix ) const
55 {
56  ossim_uint32 size = static_cast<ossim_uint32>( m_table.size() );
57  for (ossim_uint32 i = 0; i < size; ++i)
58  {
59  m_table[i].print(out, prefix, i);
60  }
61  return out;
62 }
void addRecord(const ossimRpfReplaceUpdateRecord &record)
Method to add a record.
Holds a table of RPF replace/update section subheader records.
yy_size_t size
unsigned int ossim_uint32
const ossimRpfReplaceUpdateTable & operator=(const ossimRpfReplaceUpdateTable &rhs)
assignment operator
std::vector< ossimRpfReplaceUpdateRecord > m_table
ossimRpfReplaceUpdateTable()
default constructor
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_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
RPF replace/update section subheader record.