OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimRpfReplaceUpdateRecord.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // File: ossimRpfReplaceUpdateRecord.h
4 //
5 // License: See top level LICENSE.txt file.
6 //
7 // Author: David Burken
8 //
9 // Description: See class description.
10 //
11 //----------------------------------------------------------------------------
12 // $Id: ossimRpfReplaceUpdateRecord.h 20324 2011-12-06 22:25:23Z dburken $
13 
14 #ifndef ossimRpfReplaceUpdateRecord_HEADER
15 #define ossimRpfReplaceUpdateRecord_HEADER 1
16 
19 #include <iosfwd>
20 
27 {
28 public:
29 
32  const ossimRpfReplaceUpdateRecord& data);
33 
36 
39 
42 
49 
55  void writeStream(std::ostream& out);
56 
58  void clearFields();
59 
72  const std::string& prefix=std::string(),
73  ossim_uint32 recordNumber=0) const;
74 
79  void getNewFilename(std::string& file) const;
80 
85  void getOldFilename(std::string& file) const;
86 
89 
94  void setNewFilename(const std::string& file);
95 
100  void setOldFilename(const std::string& file);
101 
104 
105 private:
106 
108  char m_newFile[13];
109 
111  char m_oldFile[13];
112 
115 };
116 
117 #endif /* #ifndef ossimRpfReplaceUpdateRecord_HEADER */
ossim_int32 ossimErrorCode
void getNewFilename(std::string &file) const
Gets new file field.
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.
void setNewFilename(const std::string &file)
Sets old file name 12 byte field.
ossim_uint8 m_updateStatus
This is a 1 byte unsigned integer.
void setOldFilename(const std::string &file)
Sets new file name 12 byte field.
const ossimRpfReplaceUpdateRecord & operator=(const ossimRpfReplaceUpdateRecord &rhs)
assignment operator
char m_oldFile[13]
This is a 12 byte asci field.
void getOldFilename(std::string &file) const
Gets old file field.
unsigned int ossim_uint32
return status
char m_newFile[13]
This is a 12 byte asci field.
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
ossimErrorCode parseStream(std::istream &in)
Method to parse the record.
ossimRpfReplaceUpdateRecord()
default constructor
friend std::ostream & operator<<(std::ostream &out, const ossimRpfReplaceUpdateRecord &data)
Convenience output operator.
void writeStream(std::ostream &out)
Write method.
unsigned char ossim_uint8
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
RPF replace/update section subheader record.