vocadmin.H
1 /*
2  Vocatra, a small and fast vocabulary trainer
3  Copyright (C) 2006-2008 Oliver Sauder <os@esite.ch>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License
7  as published by the Free Software Foundation; either version 2
8  of the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19 
20 #ifndef _VOCADMIN_H
21 #define _VOCADMIN_H
22 
28 class CVocAdmin
29 {
30 private:
35  void printBits();
36 
42  void initArrStack();
43 
44 public:
51  CVocAdmin(const size_t &nNumWords,const bool &bDebug);
52 
56  ~CVocAdmin();
57 
64  size_t GetLearnPos(bool bRandom);
65 
74  void MarkAsLearnedStack(size_t idx);
75 
84  void MarkAsLearned(size_t idx);
85 
90  bool IsFinished();
91 
92 private:
101 
108 
111 
114 
118  size_t m_nNumArrDim;
119 
122 
124  bool m_bDebug;
125 };
126 
127 #endif // _VOCADMIN_H

Get Vocatra at SourceForge.net. Fast, secure and Free Open Source software downloads Generated for Vocatra by doxygen