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

Holds a table of RPF replace/update section subheader records. More...

#include <ossimRpfReplaceUpdateTable.h>

Inheritance diagram for ossimRpfReplaceUpdateTable:
ossimReferenced

Public Member Functions

 ossimRpfReplaceUpdateTable ()
 default constructor More...
 
 ossimRpfReplaceUpdateTable (const ossimRpfReplaceUpdateTable &obj)
 copy constructor More...
 
const ossimRpfReplaceUpdateTableoperator= (const ossimRpfReplaceUpdateTable &rhs)
 assignment operator More...
 
void addRecord (const ossimRpfReplaceUpdateRecord &record)
 Method to add a record. More...
 
void clear ()
 Clears the table. More...
 
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. More...
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 

Private Attributes

std::vector< ossimRpfReplaceUpdateRecordm_table
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Holds a table of RPF replace/update section subheader records.

See MIL-STD-2411 for detailed information.

Definition at line 29 of file ossimRpfReplaceUpdateTable.h.

Constructor & Destructor Documentation

◆ ossimRpfReplaceUpdateTable() [1/2]

ossimRpfReplaceUpdateTable::ossimRpfReplaceUpdateTable ( )

default constructor

Definition at line 21 of file ossimRpfReplaceUpdateTable.cpp.

22  :
23  m_table(0)
24 {
25 }
std::vector< ossimRpfReplaceUpdateRecord > m_table

◆ ossimRpfReplaceUpdateTable() [2/2]

ossimRpfReplaceUpdateTable::ossimRpfReplaceUpdateTable ( const ossimRpfReplaceUpdateTable obj)

copy constructor

Definition at line 27 of file ossimRpfReplaceUpdateTable.cpp.

28  :
29  m_table(obj.m_table)
30 {
31 }
std::vector< ossimRpfReplaceUpdateRecord > m_table

Member Function Documentation

◆ addRecord()

void ossimRpfReplaceUpdateTable::addRecord ( const ossimRpfReplaceUpdateRecord record)

Method to add a record.

Parameters
recordto add.

Definition at line 43 of file ossimRpfReplaceUpdateTable.cpp.

References m_table.

Referenced by ossimRpfFrame::populateReplaceUpdateTable().

44 {
45  m_table.push_back(record);
46 }
std::vector< ossimRpfReplaceUpdateRecord > m_table

◆ clear()

void ossimRpfReplaceUpdateTable::clear ( )

Clears the table.

Definition at line 48 of file ossimRpfReplaceUpdateTable.cpp.

References m_table.

Referenced by ossimRpfFrame::populateReplaceUpdateTable().

49 {
50  m_table.clear();
51 }
std::vector< ossimRpfReplaceUpdateRecord > m_table

◆ operator=()

const ossimRpfReplaceUpdateTable & ossimRpfReplaceUpdateTable::operator= ( const ossimRpfReplaceUpdateTable rhs)

assignment operator

Definition at line 33 of file ossimRpfReplaceUpdateTable.cpp.

References m_table.

35 {
36  if ( this != &rhs )
37  {
38  m_table = rhs.m_table;
39  }
40  return *this;
41 }
std::vector< ossimRpfReplaceUpdateRecord > m_table

◆ print()

std::ostream & ossimRpfReplaceUpdateTable::print ( std::ostream &  out,
const std::string &  prefix = std::string() 
) const

print method that outputs a key/value type format adding prefix to keys.

Parameters
outStream to output to.
prefixThis will be prepended to key. e.g. Where prefix = "nitf.rpf." and key is "new_file" key becomes: "nitf.rpf.replace_update_record0.new_file:
Returns
output stream.

Definition at line 53 of file ossimRpfReplaceUpdateTable.cpp.

References m_table, and size.

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 }
yy_size_t size
unsigned int ossim_uint32
std::vector< ossimRpfReplaceUpdateRecord > m_table

Member Data Documentation

◆ m_table

std::vector<ossimRpfReplaceUpdateRecord> ossimRpfReplaceUpdateTable::m_table
private

Definition at line 65 of file ossimRpfReplaceUpdateTable.h.

Referenced by addRecord(), clear(), operator=(), and print().


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