/usr/include/ossim/imaging/ossimEnviHeaderFileWriter.h is in libossim-dev 1.8.16-3+b1.
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 76 77 78 | //----------------------------------------------------------------------------
// Copyright (c) 2005, David Burken, all rights reserved.
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: David Burken
//
// Description:
//
// Class declaration for ossimEnviHeaderFileWriter. Meta data class for
// writing an ENVI (The Environment for Visualizing Images) header file.
//
//----------------------------------------------------------------------------
// $Id: ossimEnviHeaderFileWriter.h 15766 2009-10-20 12:37:09Z gpotts $
#ifndef ossimEnviHeaderFileWriter_H
#define ossimEnviHeaderFileWriter_H
#include <fstream>
#include <ossim/imaging/ossimMetadataFileWriter.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/support_data/ossimEnviHeader.h>
/**
* Class for writing a "ENVI" style header.
*/
class OSSIMDLLEXPORT ossimEnviHeaderFileWriter : public ossimMetadataFileWriter
{
public:
/** default constructor */
ossimEnviHeaderFileWriter();
/**
* Initializes the state of the writer. Users should use this to set
* the envi 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;
protected:
/** virtual destructor */
virtual ~ossimEnviHeaderFileWriter();
private:
virtual bool writeFile();
ossimEnviHeader theHdr;
TYPE_DATA
};
#endif /* End of #ifndef ossimEnviHeaderFileWriter_H */
|