~ubuntu-branches/ubuntu/precise/p7zip/precise-updates

« back to all changes in this revision

Viewing changes to CPP/7zip/Compress/CopyCoder.h

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2009-02-14 20:12:27 UTC
  • mfrom: (1.1.11 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090214201227-go63qxm9ozfdma60
Tags: 4.65~dfsg.1-1
* New upstream release.
* Remove wx2.8 Build-Depends added by mistakes (7zG is not yet
  intended to be built).
* Use dh_clean without -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Compress/CopyCoder.h
 
2
 
 
3
#ifndef __COMPRESS_COPY_CODER_H
 
4
#define __COMPRESS_COPY_CODER_H
 
5
 
 
6
#include "../../Common/MyCom.h"
 
7
 
 
8
#include "../ICoder.h"
 
9
 
 
10
namespace NCompress {
 
11
 
 
12
class CCopyCoder:
 
13
  public ICompressCoder,
 
14
  public ICompressGetInStreamProcessedSize,
 
15
  public CMyUnknownImp
 
16
{
 
17
  Byte *_buffer;
 
18
public:
 
19
  UInt64 TotalSize;
 
20
  CCopyCoder(): TotalSize(0) , _buffer(0) {};
 
21
  ~CCopyCoder();
 
22
 
 
23
  MY_UNKNOWN_IMP1(ICompressGetInStreamProcessedSize)
 
24
 
 
25
  STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream,
 
26
      const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
 
27
  STDMETHOD(GetInStreamProcessedSize)(UInt64 *value);
 
28
};
 
29
 
 
30
}
 
31
 
 
32
#endif