vocprinter.H
1 /*
2  Vocatra, a small and fast vocabulary trainer
3  Copyright (C) 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 _VOCPRINTER_H
21 #define _VOCPRINTER_H
22 
28 {
29 private:
34  void printLine(std::string strLine);
35 
41  std::string genWordString(const std::vector<std::string> &words);
42 
46  void beep();
47 
48 public:
53  void PrintWords(const std::vector<std::string> &words);
54 
59  void PrintCorrectString();
60 
67  void PrintWrongString(const std::vector<std::string> &words,
68  const bool &bBeep);
69 
73  void PrintStartString();
74 
82  void PrintEndString(size_t nWords,size_t nInquiries,size_t nWrong,size_t nSecs);
83 };
84 
85 #endif // _VOCPRINTER_H

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