OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimKakaduCompressedTarget.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:
8 //
9 // Class declaration for JPEG2000 (J2K) kdu_compressed_target that uses an
10 // ostream for writing to the file.
11 //
12 //----------------------------------------------------------------------------
13 // $Id: ossimKakaduCompressedTarget.h 22884 2014-09-12 13:14:35Z dburken $
14 
15 #ifndef ossimKakaduCompressedTarget_HEADER
16 #define ossimKakaduCompressedTarget_HEADER 1
17 
19 #include <kdu_compressed.h>
20 #include <kdu_elementary.h>
21 #include <iosfwd>
22 
28  public kdu_core::kdu_compressed_target
29 {
30 public:
31 
34 
37 
46  void setStream(std::ostream* stream);
47 
54  virtual bool write(const kdu_core::kdu_byte *buf, int num_bytes);
55 
56  virtual bool start_rewrite(kdu_core::kdu_long backtrack);
57 
58  virtual bool end_rewrite();
59 
60 private:
61 
63  std::streamoff m_restorePosition; // For end_rewrite.
64 
65 };
66 
67 #endif /* #ifndef ossimKakaduCompressedTarget_HEADER */
virtual ~ossimKakaduCompressedTarget()
virtural destructor
void setStream(std::ostream *stream)
Sets the output stream.
ossimKakaduCompressedTarget()
default construtor
virtual bool start_rewrite(kdu_core::kdu_long backtrack)
virtual bool write(const kdu_core::kdu_byte *buf, int num_bytes)
Write method.
ossimKakaduCompressedTarget JPEG2000 (J2K) kdu_compressed_target that uses an ostream for writing to ...
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23