OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimCodecBase.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // License: LGPL
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Description: class declaration for base codec(encoder/decoder).
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 #ifndef ossimCodecBase_HEADER
12 #define ossimCodecBase_HEADER 1
13 
14 #include <ossim/base/ossimObject.h>
18  : public ossimObject, public ossimPropertyInterface
19 {
20 public:
21 
28  virtual ossimString getCodecType()const=0;
29 
42  virtual bool encode( const ossimRefPtr<ossimImageData>& in,
43  std::vector<ossim_uint8>& out ) const=0;
44 
59  virtual bool decode( const std::vector<ossim_uint8>& in,
60  ossimRefPtr<ossimImageData>& out ) const=0;
61 
62  virtual const std::string& getExtension() const=0;
63 };
64 
65 #endif
#define OSSIM_DLL