summaryrefslogtreecommitdiff
path: root/lib/dbdict.h
blob: 100c6265d4b1ea2be2fd6560b0ac1bcd7591e848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * dbdict.h
 *
 * See the README file for copyright information and how to reach the author.
 *
 */

#ifndef __DBDICT_H
#define __DBDICT_H

#include "db.h"

//***************************************************************************
// cDbDict
//***************************************************************************

class cDbDict : public cDbService
{
      
   public:

      // declarations

      enum DictToken
      {
         dtName,
         dtDescription,
         dtFormat,
         dtSize,
         dtType,

         dtCount
      };

      cDbDict();
      virtual ~cDbDict();

      int in(const char* file);

   protected:

      int atLine(const char* line);
      int parseField(const char* line);

      // data

      int inside;
      static FieldDef fields[];

};

#endif //  __DBDICT_H