/usr/include/ossim/imaging/ossimCodecFactory.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 | //----------------------------------------------------------------------------
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: David Burken
//
// Description: Factory class declaration for codec(encoder/decoder).
//
//----------------------------------------------------------------------------
// $Id$
#ifndef ossimCodecFactory_HEADER
#define ossimCodecFactory_HEADER 1
#include <ossim/base/ossimConstants.h>
#include <ossim/imaging/ossimCodecFactoryInterface.h>
class ossimFilename;
class ossimCodecBase;
/**
* @brief Codec factory.
*/
class OSSIM_DLL ossimCodecFactory : public ossimCodecFactoryInterface
{
public:
/** virtual destructor */
virtual ~ossimCodecFactory();
/**
* @return instance
*/
static ossimCodecFactory* instance();
/**
* createCodec takes a type and will return a new codec to encode decode image buffers
*
* @param in type. Type identifer used to allocate the proper codec.
* @return ossimCodecBase type.
*/
virtual ossimCodecBase* createCodec(const ossimString& type)const;
/**
* createCodec takes a type in the keywordlist and will return a new codec to encode decode image buffers
*
* @param in kwl. Type identifer used to allocate the proper codec.
* @param in prefix. prefix used to prefix keywords during the construction
* of the codec
* @return ossimCodecBase type.
*/
virtual ossimCodecBase* createCodec(const ossimKeywordlist& kwl, const char* prefix=0)const;
virtual void getTypeNameList(std::vector<ossimString>& typeNames)const;
private:
/** hidden from use default constructor */
ossimCodecFactory();
/** hidden from use copy constructor */
ossimCodecFactory(const ossimCodecFactory& obj);
/** hidden from use operator = */
const ossimCodecFactory& operator=(const ossimCodecFactory& rhs);
/** The single instance of this class. */
static ossimCodecFactory* theInstance;
};
#endif /* End of "#ifndef ossimCodecFactory_HEADER" */
|