3 #include "ConfigHolder.h"
10 std::ifstream
ifs(configHolder
.keyFile().c_str());
14 std::getline(ifs
, tmpWord
);
16 errWords
.insert(tmpWord
);
22 D_OUTPUT("~Tester()\n");
23 std::ofstream
ofs(configHolder
.keyFile().c_str());
24 std::set
<std::string
>::const_iterator itr
= errWords
.begin();
25 while(itr
!= errWords
.end()) {
26 ofs
<< *itr
<< std::endl
;
32 bool Tester::load(time_t initID
) {
33 if( loadWords(initID
,true) ) {
34 wordList
= new WordList(words
.size(),configHolder
.t_list());
41 void Tester::test(bool result
) {
43 if(wordList
->status() == 0)
47 if( wordList
->status() == 0)
48 errWords
.insert(getWord());
53 } //End of namespace freeRecite