/usr/include/ossim/imaging/ossimERSFileWriter.h is in libossim-dev 1.7.21-3ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | //----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file.
//
// Author: Andrew Huang
//
// Description:
//
// Class declaration for ossimERSFileWriter. Meta data class for
// writing an ERS header file.
//
//----------------------------------------------------------------------------
// $Id: ossimERSFileWriter.h 10317 2007-01-19 18:11:58Z dburken $
#ifndef ossimERSFileWriter_H
#define ossimERSFileWriter_H
#include <fstream>
#include <ossim/imaging/ossimMetadataFileWriter.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/support_data/ossimERS.h>
/**
* Class for writing a "ERS" style header.
*/
class OSSIM_DLL ossimERSFileWriter : public ossimMetadataFileWriter
{
public:
/** default constructor */
ossimERSFileWriter();
/** virtual destructor */
virtual ~ossimERSFileWriter();
/**
* Initializes the state of the writer. Users should use this to set
* the ERS header fields that are not taken from theInputConnection prior
* to calling execute.
*
* @return true on success, false on failure.
*/
virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix = 0);
/**
* Satisfies pure virtual from ossimMetadataWriter base.
*
* Appends the writers image types to the "metadatatypeList".
*
* @param metadatatypeList stl::vector<ossimString> list to append to.
*
* @note Appends to the list, does not clear it first.
*/
virtual void getMetadatatypeList(
std::vector<ossimString>& metadatatypeList) const;
/**
* Satisfies pure virtual from ossimMetadataWriter base.
*
* @param imageType string representing image type.
*
* @return true if "metadataType" is supported by writer.
*/
virtual bool hasMetadataType(const ossimString& metadataType)const;
private:
virtual bool writeFile();
ossimERS theHdr;
TYPE_DATA
};
#endif /* End of #ifndef ossimERSFileWriter_H */
|