OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimCodecFactoryInterface.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: MIT
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: David Burken
8 //
9 // Description: Interface for codec(encoder/decoder) factories.
10 //
11 //----------------------------------------------------------------------------
12 // $Id$
13 #ifndef ossimCodecFactoryInterface_HEADER
14 #define ossimCodecFactoryInterface_HEADER 1
15 
18 #include <ossim/base/ossimRefPtr.h>
20 #include <vector>
21 
22 class ossimObject;
23 class ossimCodecBase;
27 class OSSIM_DLL ossimCodecFactoryInterface // : public ossimObjectFactory
28 {
29 public:
30 
33 
36 
43  virtual ossimObject* createObject(const ossimString& type)const;
44 
51  virtual ossimObject* createObject(const ossimKeywordlist& kwl, const char* prefix=0)const;
52 
53 
54 
55  virtual ossimCodecBase* createCodec(const ossimString& type)const=0;
56  virtual ossimCodecBase* createCodec(const ossimKeywordlist& kwl, const char* prefix=0)const=0;
57 
58 
59  virtual void getTypeNameList(std::vector<ossimString>& typeNames)const=0;
60 
71 // virtual bool decode( const std::vector<ossim_uint8>& in,
72 // ossimRefPtr<ossimImageData>& out ) const = 0;
73 
85 // virtual bool encode( const ossimKeywordlist& options,
86 // const ossimRefPtr<ossimImageData>& in,
87 // std::vector<ossim_uint8>& out ) const = 0;
88 };
89 
90 #endif /* End of "#ifndef ossimCodecFactoryInterface_HEADER" */
Represents serializable keyword/value map.
ossimObject * createObject(const ossimString &objectType)
Definition: kwl.cpp:64
virtual ~ossimCodecFactoryInterface()
virtual destructor
#define OSSIM_DLL
ossimCodecFactoryInterface()
default constructor