mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 21:34:07 +00:00
ee966c4d2d
and their header files necessary to build GoldenDict on 64-bit Intel Macs. Included program icon into application package. Minor code clarification in keyboardstate.cc
26 lines
522 B
C++
26 lines
522 B
C++
/* file manager class - read lines of files [filename] OR [filename.hz] */
|
|
#ifndef _FILEMGR_HXX_
|
|
#define _FILEMGR_HXX_
|
|
|
|
#include "hunvisapi.h"
|
|
|
|
#include "hunzip.hxx"
|
|
#include <stdio.h>
|
|
|
|
class LIBHUNSPELL_DLL_EXPORTED 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
|