18 #ifndef __ebzip2_h_included 19 #define __ebzip2_h_included 65 m_filename = filename;
100 Int
read(pUChar pbuf, Int length);
102 Int
readLine(pStr pbuf, Int length);
104 Int
write(pUChar pbuf, Int length);
113 Operation m_operation;
115 ULongLong m_bytesout;
121 #endif // #define __ebzip2_h_included Void writeOpen(cpStr filename)
Open the file for writing.
Definition: ebzip2.cpp:106
Encapsulates and extends a std::string object.
~EBzip2()
Class destructor.
Definition: ebzip2.cpp:81
#define True
True.
Definition: ebase.h:25
#define DECLARE_ERROR_ADVANCED4(__e__)
Declares exception class derived from EError with an const char* as a constructor parameter and devel...
Definition: eerror.h:85
Int write(pUChar pbuf, Int length)
Write the specified number of decompressed bytes.
Definition: ebzip2.cpp:218
EString & setFileName(cpStr filename)
Sets the file name that to be operated on.
Definition: ebzip2.h:63
Void readOpen(cpStr filename)
Open the file for reading.
Definition: ebzip2.cpp:86
EBzip2()
Class constructor.
Definition: ebzip2.cpp:70
EString & getFileName()
Gets the file name that to be operated on.
Definition: ebzip2.h:69
Bool isOpen()
True - the file is open, False - the file is closed.
Definition: ebzip2.h:91
#define False
False.
Definition: ebase.h:27
Void close()
Close the file.
Definition: ebzip2.cpp:111
Defines base class for exceptions and declaration helper macros.
cChar getTerminator()
Gets the line terminator used by readLine().
Definition: ebzip2.h:78
static cpStr getErrorDesc(Int e)
Gets the description of the specified error value.
Definition: ebzip2.cpp:223
Int readLine(pStr pbuf, Int length)
Read a decompressed line terminated by the supplied terminator.
Definition: ebzip2.cpp:180
ULongLong getBytesIn()
The number of uncompressed bytes associated with the file written.
Definition: ebzip2.h:86
#define DECLARE_ERROR_ADVANCED2(__e__)
Declares exception class derived from EError with an Int as a constructor parameter and developer def...
Definition: eerror.h:69
Int read(pUChar pbuf, Int length)
Read a specified number of decompressed bytes.
Definition: ebzip2.cpp:151
Int getLastError()
Gets the last error value that occurred.
Definition: ebzip2.h:81
ULongLong getBytesOut()
The number of compressed bytes associated with the file written.
Definition: ebzip2.h:88
String class.
Definition: estring.h:31
cChar setTerminator(cChar c)
Sets the line terminator used by readLine().
Definition: ebzip2.h:72