|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
RPF replace/update section subheader record. More...
#include <ossimRpfReplaceUpdateRecord.h>
Public Member Functions | |
| ossimRpfReplaceUpdateRecord () | |
| default constructor More... | |
| ossimRpfReplaceUpdateRecord (const ossimRpfReplaceUpdateRecord &obj) | |
| copy constructor More... | |
| const ossimRpfReplaceUpdateRecord & | operator= (const ossimRpfReplaceUpdateRecord &rhs) |
| assignment operator More... | |
| ossimErrorCode | parseStream (std::istream &in) |
| Method to parse the record. More... | |
| void | writeStream (std::ostream &out) |
| Write method. More... | |
| void | clearFields () |
| Clears fields. More... | |
| std::ostream & | print (std::ostream &out, const std::string &prefix=std::string(), ossim_uint32 recordNumber=0) const |
| print method that outputs a key/value type format adding prefix to keys. More... | |
| void | getNewFilename (std::string &file) const |
| Gets new file field. More... | |
| void | getOldFilename (std::string &file) const |
| Gets old file field. More... | |
| ossim_uint8 | getUpdateStatus () const |
| void | setNewFilename (const std::string &file) |
| Sets old file name 12 byte field. More... | |
| void | setOldFilename (const std::string &file) |
| Sets new file name 12 byte field. More... | |
| void | setUpdateStatus (ossim_uint8 status) |
Private Attributes | |
| char | m_newFile [13] |
| This is a 12 byte asci field. More... | |
| char | m_oldFile [13] |
| This is a 12 byte asci field. More... | |
| ossim_uint8 | m_updateStatus |
| This is a 1 byte unsigned integer. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const ossimRpfReplaceUpdateRecord &data) |
| Convenience output operator. More... | |
RPF replace/update section subheader record.
See MIL-STD-2411 for detailed information.
Definition at line 26 of file ossimRpfReplaceUpdateRecord.h.
| ossimRpfReplaceUpdateRecord::ossimRpfReplaceUpdateRecord | ( | ) |
default constructor
Definition at line 29 of file ossimRpfReplaceUpdateRecord.cpp.
References clearFields().
| ossimRpfReplaceUpdateRecord::ossimRpfReplaceUpdateRecord | ( | const ossimRpfReplaceUpdateRecord & | obj | ) |
copy constructor
Definition at line 36 of file ossimRpfReplaceUpdateRecord.cpp.
References m_newFile, and m_oldFile.
| void ossimRpfReplaceUpdateRecord::clearFields | ( | ) |
Clears fields.
Definition at line 127 of file ossimRpfReplaceUpdateRecord.cpp.
References m_newFile, m_oldFile, and m_updateStatus.
Referenced by ossimRpfReplaceUpdateRecord(), and parseStream().
| void ossimRpfReplaceUpdateRecord::getNewFilename | ( | std::string & | file | ) | const |
Gets new file field.
| file | Set by this. |
Definition at line 97 of file ossimRpfReplaceUpdateRecord.cpp.
References m_newFile.
| void ossimRpfReplaceUpdateRecord::getOldFilename | ( | std::string & | file | ) | const |
Gets old file field.
| file | Set by this. |
Definition at line 102 of file ossimRpfReplaceUpdateRecord.cpp.
References m_oldFile.
| ossim_uint8 ossimRpfReplaceUpdateRecord::getUpdateStatus | ( | ) | const |
Definition at line 107 of file ossimRpfReplaceUpdateRecord.cpp.
References m_updateStatus.
| const ossimRpfReplaceUpdateRecord & ossimRpfReplaceUpdateRecord::operator= | ( | const ossimRpfReplaceUpdateRecord & | rhs | ) |
assignment operator
Definition at line 44 of file ossimRpfReplaceUpdateRecord.cpp.
References m_newFile, m_oldFile, and m_updateStatus.
| ossimErrorCode ossimRpfReplaceUpdateRecord::parseStream | ( | std::istream & | in | ) |
Method to parse the record.
Note no byte swapping required for this record.
| in | Stream sitting at record. |
Definition at line 56 of file ossimRpfReplaceUpdateRecord.cpp.
References clearFields(), m_newFile, m_oldFile, m_updateStatus, ossimErrorCodes::OSSIM_ERROR, ossimErrorCodes::OSSIM_OK, and status.
Referenced by ossimRpfFrame::populateReplaceUpdateTable().
| std::ostream & ossimRpfReplaceUpdateRecord::print | ( | std::ostream & | out, |
| const std::string & | prefix = std::string(), |
||
| ossim_uint32 | recordNumber = 0 |
||
| ) | const |
print method that outputs a key/value type format adding prefix to keys.
| out | Stream to output to. |
| prefix | This will be prepended to key. |
| recordNumber | This is added to key. See below. e.g. Where prefix = "nitf.rpf.", recordNumber = 0 and key is "new_file" key becomes: "nitf.rpf.replace_update_record0.new_file:" |
Definition at line 82 of file ossimRpfReplaceUpdateRecord.cpp.
References m_newFile, m_oldFile, m_updateStatus, ossimString::string(), and ossimString::toString().
Referenced by operator<<().
| void ossimRpfReplaceUpdateRecord::setNewFilename | ( | const std::string & | file | ) |
Sets old file name 12 byte field.
| file |
Definition at line 112 of file ossimRpfReplaceUpdateRecord.cpp.
References m_newFile, and ossimNitfCommon::setField().
| void ossimRpfReplaceUpdateRecord::setOldFilename | ( | const std::string & | file | ) |
Sets new file name 12 byte field.
| file |
Definition at line 117 of file ossimRpfReplaceUpdateRecord.cpp.
References m_oldFile, and ossimNitfCommon::setField().
| void ossimRpfReplaceUpdateRecord::setUpdateStatus | ( | ossim_uint8 | status | ) |
Definition at line 122 of file ossimRpfReplaceUpdateRecord.cpp.
References m_updateStatus, and status.
| void ossimRpfReplaceUpdateRecord::writeStream | ( | std::ostream & | out | ) |
Write method.
Note no byte swapping required for this record.
| out | Stream to write to. |
Definition at line 75 of file ossimRpfReplaceUpdateRecord.cpp.
References m_newFile, m_oldFile, and m_updateStatus.
|
friend |
Convenience output operator.
Definition at line 24 of file ossimRpfReplaceUpdateRecord.cpp.
|
private |
This is a 12 byte asci field.
Definition at line 108 of file ossimRpfReplaceUpdateRecord.h.
Referenced by clearFields(), getNewFilename(), operator=(), ossimRpfReplaceUpdateRecord(), parseStream(), print(), setNewFilename(), and writeStream().
|
private |
This is a 12 byte asci field.
Definition at line 111 of file ossimRpfReplaceUpdateRecord.h.
Referenced by clearFields(), getOldFilename(), operator=(), ossimRpfReplaceUpdateRecord(), parseStream(), print(), setOldFilename(), and writeStream().
|
private |
This is a 1 byte unsigned integer.
Definition at line 114 of file ossimRpfReplaceUpdateRecord.h.
Referenced by clearFields(), getUpdateStatus(), operator=(), parseStream(), print(), setUpdateStatus(), and writeStream().
1.8.14