~ubuntu-branches/debian/stretch/mudlet/stretch

« back to all changes in this revision

Viewing changes to src/hunspell/filemgr.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Craig Small
  • Date: 2011-05-14 20:12:49 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110514201249-184gqx5jjqam02lg
Tags: 2.0-rc5-1
New upstream release

Show diffs side-by-side

added added

removed removed

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