/usr/include/ossim/imaging/ossimImageWriterFactoryRegistry.h is in libossim-dev 2.2.2-1.
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 79 80 81 82 83 84 85 86 87 88 89 | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Frank Warmerdam (warmerda@home.com)
//
//*******************************************************************
// $Id: ossimImageWriterFactoryRegistry.h 22865 2014-08-06 11:17:03Z gpotts $
#ifndef ossimImageWriterFactoryRegistry_HEADER
#define ossimImageWriterFactoryRegistry_HEADER
#include <ossim/base/ossimObjectFactory.h>
#include <ossim/imaging/ossimImageWriterFactoryBase.h>
#include <ossim/base/ossimFactoryListInterface.h>
#include <vector>
#include <iosfwd>
class ossimImageFileWriter;
class ossimKeywordlist;
class OSSIMDLLEXPORT ossimImageWriterFactoryRegistry :
public ossimObjectFactory,
public ossimFactoryListInterface<ossimImageWriterFactoryBase, ossimImageFileWriter>
{
public:
static ossimImageWriterFactoryRegistry* instance();
ossimImageFileWriter *createWriter(const ossimFilename& filename)const;
ossimImageFileWriter *createWriterFromExtension(const ossimString& fileExtension)const;
ossimImageFileWriter *createWriter(const ossimKeywordlist &kwl,
const char *prefix=0)const;
ossimImageFileWriter* createWriter(const ossimString& typeName)const;
ossimObject* createObject(const ossimKeywordlist &kwl,
const char *prefix=0)const;
ossimObject* createObject(const ossimString& typeName)const;
/**
* getTypeNameList. This should return the class type of the object being
* used to perform the writting.
*/
virtual void getTypeNameList(std::vector<ossimString>& typeList)const;
/**
* getImageTypeList. This is the actual image type name. So for
* example, ossimTiffWriter has several image types. Some of these
* include TIFF_TILED, TIFF_TILED_BAND_SEPARATE ... etc.
* The ossimGdalWriter
* may include GDAL_IMAGINE_HFA, GDAL_RGB_NITF, GDAL_JPEG20000, ... etc
* A writer should be able to be instantiated by this name as well as a
* class name
*/
virtual void getImageTypeList(std::vector<ossimString>& imageTypeList)const;
virtual void getImageFileWritersBySuffix(ossimImageWriterFactoryBase::ImageFileWriterList& result,
const ossimString& ext)const;
virtual void getImageFileWritersByMimeType(ossimImageWriterFactoryBase::ImageFileWriterList& result,
const ossimString& mimeType)const;
/**
* @brief Prints list of writers from getImageTypeList.
* @param out Stream to print to.
* @return std::ostream&
*/
std::ostream& printImageTypeList(std::ostream& out)const;
/**
* @brief Prints list of writers from getImageTypeList.
* @param out Stream to print to.
* @return std::ostream&
*/
std::ostream& printWriterProps(std::ostream& out)const;
protected:
ossimImageWriterFactoryRegistry();
ossimImageWriterFactoryRegistry(const ossimImageWriterFactoryRegistry&);
void operator=(const ossimImageWriterFactoryRegistry&);
//static ossimImageWriterFactoryRegistry* theInstance;
};
extern "C"
{
OSSIMDLLEXPORT void* ossimImageWriterFactoryRegistryGetInstance();
}
#endif
|