00001 /* 00002 Vocatra, a small and fast vocabulary trainer 00003 Copyright (C) 2008 Oliver Sauder <os@esite.ch> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef _VOCPRINTER_H 00021 #define _VOCPRINTER_H 00022 00027 class CVocPrinter 00028 { 00029 private: 00034 void printLine(std::string strLine); 00035 00041 std::string genWordString(const std::vector<std::string> &words); 00042 00046 void beep(); 00047 00048 public: 00053 void PrintWords(const std::vector<std::string> &words); 00054 00059 void PrintCorrectString(); 00060 00067 void PrintWrongString(const std::vector<std::string> &words, 00068 const bool &bBeep); 00069 00073 void PrintStartString(); 00074 00082 void PrintEndString(size_t nWords,size_t nInquiries,size_t nWrong,size_t nSecs); 00083 }; 00084 00085 #endif // _VOCPRINTER_H
|
|
Generated for Vocatra by
|
