filemgr.hxx 522 B

12345678910111213141516171819202122232425
  1. /* file manager class - read lines of files [filename] OR [filename.hz] */
  2. #ifndef _FILEMGR_HXX_
  3. #define _FILEMGR_HXX_
  4. #include "hunvisapi.h"
  5. #include "hunzip.hxx"
  6. #include <stdio.h>
  7. class LIBHUNSPELL_DLL_EXPORTED FileMgr
  8. {
  9. protected:
  10. FILE * fin;
  11. Hunzip * hin;
  12. char in[BUFSIZE + 50]; // input buffer
  13. int fail(const char * err, const char * par);
  14. int linenum;
  15. public:
  16. FileMgr(const char * filename, const char * key = NULL);
  17. ~FileMgr();
  18. char * getline();
  19. int getlinenum();
  20. };
  21. #endif