diff options
Diffstat (limited to 'lib/dbdict.h')
-rw-r--r-- | lib/dbdict.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/dbdict.h b/lib/dbdict.h new file mode 100644 index 0000000..100c626 --- /dev/null +++ b/lib/dbdict.h @@ -0,0 +1,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 |