00001
00002 #ifndef _GWORDSTORE_H_
00003 #define _GWORDSTORE_H_
00004
00005 class GWordStore
00006 {
00007 class GWordStorePriv *d;
00008
00009 public:
00010 GWordStore(char *file = 0);
00011 ~GWordStore();
00012
00013
00014 bool Serialize(char *file, bool Load);
00015
00016
00017 int GetItems();
00018 void SetItems(int s);
00019 bool Insert(char *Word);
00020 int GetWordCount(char *Word);
00021 int SetWordCount(char *Word, int Count);
00022 void Empty();
00023 char *GetFile();
00024 void SetFile(char *file);
00025
00026
00027 char *First();
00028 char *Next();
00029 int Length();
00030
00031 #ifdef _DEBUG
00032 int64 Sizeof();
00033 #endif
00034 };
00035
00036 #endif