EpcTools
An event based multi-threaded C++ development framework.
|
Go to the documentation of this file.
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
cChar getTerminator()
Gets the line terminator used by readLine().
Definition: ebzip2.h:78
Defines base class for exceptions and declaration helper macros.
ULongLong getBytesOut()
The number of compressed bytes associated with the file written.
Definition: ebzip2.h:88
#define DECLARE_ERROR_ADVANCED2(__e__)
Declares exception class derived from EError with an Int as a constructor parameter and developer def...
Definition: eerror.h:67
static cpStr getErrorDesc(Int e)
Gets the description of the specified error value.
Definition: ebzip2.cpp:223
#define True
True.
Definition: ebase.h:25
ULongLong getBytesIn()
The number of uncompressed bytes associated with the file written.
Definition: ebzip2.h:86
#define DECLARE_ERROR_ADVANCED4(__e__)
Declares exception class derived from EError with an const char* as a constructor parameter and devel...
Definition: eerror.h:83
#define False
False.
Definition: ebase.h:27
~EBzip2()
Class destructor.
Definition: ebzip2.cpp:81
Int readLine(pStr pbuf, Int length)
Read a decompressed line terminated by the supplied terminator.
Definition: ebzip2.cpp:180
Int write(pUChar pbuf, Int length)
Write the specified number of decompressed bytes.
Definition: ebzip2.cpp:218
Bool isOpen()
True - the file is open, False - the file is closed.
Definition: ebzip2.h:91
EString & setFileName(cpStr filename)
Sets the file name that to be operated on.
Definition: ebzip2.h:63
Void close()
Close the file.
Definition: ebzip2.cpp:111
EBzip2()
Class constructor.
Definition: ebzip2.cpp:70
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
cChar setTerminator(cChar c)
Sets the line terminator used by readLine().
Definition: ebzip2.h:72
String class.
Definition: estring.h:30
EString & getFileName()
Gets the file name that to be operated on.
Definition: ebzip2.h:69
Void writeOpen(cpStr filename)
Open the file for writing.
Definition: ebzip2.cpp:106
Encapsulates and extends a std::string object.
Void readOpen(cpStr filename)
Open the file for reading.
Definition: ebzip2.cpp:86