//---------------------------------------------------------------------------- // Copyright (c) 2005, David Burken, all rights reserved. // // License: MIT // // 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 23664 2015-12-14 14:17:27Z dburken $ #ifndef ossimEnviHeaderFileWriter_H #define ossimEnviHeaderFileWriter_H #include #include #include #include /** * 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 list to append to. * * @note Appends to the list, does not clear it first. */ virtual void getMetadatatypeList( std::vector& 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 */