LRAUV  revA
ZipEncoder.h
Go to the documentation of this file.
1 
10 #ifndef ZIPENCODER_H_
11 #define ZIPENCODER_H_
12 
13 #include "FileEncoder.h"
14 
15 #define WRITEBUFFERSIZE (16384)
16 
24 class ZipEncoder : public FileEncoder
25 {
26 public:
27 
28  ZipEncoder( const char* defaultExtension );
29 
30  virtual ~ZipEncoder();
31 
32  virtual bool encode( const char* inFilename, const char* outFilename = 0, const char* renameFilename = 0 );
33 
34 private:
35 
36  // Note that the copy constructor below is private and not given a body.
37  // Any attempt to call it will return a compiler error.
38  ZipEncoder( const ZipEncoder& old ); // disallow copy constructor
39 
40  const char* defaultExtension_;
41 
43 };
44 
45 #endif /* ZIPENCODER_H_ */
virtual bool encode(const char *inFilename, const char *outFilename=0, const char *renameFilename=0)
Definition: ZipEncoder.cpp:73
Contains the FileEncoder class declaration.
char writeBuffer_[WRITEBUFFERSIZE]
Definition: ZipEncoder.h:42
This is a rather abstract class that can be implemented by classes that encode a (closed) file...
Definition: ZipEncoder.h:24
const char * defaultExtension_
Definition: ZipEncoder.h:40
virtual ~ZipEncoder()
Definition: ZipEncoder.cpp:28
#define WRITEBUFFERSIZE
Definition: ZipEncoder.h:15
ZipEncoder(const char *defaultExtension)
Definition: ZipEncoder.cpp:22
This is a rather abstract class that can be implemented by classes that encode a (closed) file...
Definition: FileEncoder.h:20