mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 16:54:08 +00:00
22 lines
453 B
C++
22 lines
453 B
C++
|
/* file manager class - read lines of files [filename] OR [filename.hz] */
|
||
|
#ifndef _FILEMGR_HXX_
|
||
|
#define _FILEMGR_HXX_
|
||
|
#include "hunzip.hxx"
|
||
|
|
||
|
class FileMgr
|
||
|
{
|
||
|
protected:
|
||
|
FILE * fin;
|
||
|
Hunzip * hin;
|
||
|
char in[BUFSIZE + 50]; // input buffer
|
||
|
int fail(const char * err, const char * par);
|
||
|
int linenum;
|
||
|
|
||
|
public:
|
||
|
FileMgr(const char * filename, const char * key = NULL);
|
||
|
~FileMgr();
|
||
|
char * getline();
|
||
|
int getlinenum();
|
||
|
};
|
||
|
#endif
|