update dict
[QFreeRecite.git] / src / core / Exporter.cpp
blob34d185215bbfcceb49ed1e0c20982abb9f305ce6
1 #include <vector>
2 #include <fstream>
3 #include <algorithm>
4 #include <ctime>
5 #include <set>
6 #include "ConfigHolder.h"
7 #include "Exporter.h"
8 #include "WordList.h"
9 #include "Debug.h"
11 namespace freeRecite {
13 Exporter::~Exporter() {
14 /* Do Nothing Here! */
15 D_OUTPUT("~Stress()\n");
19 bool Exporter::load(time_t initID) {
20 if( loadWords(initID,false) ) {
21 wordList = new WordList(words.size(),configHolder.e_list());
22 return true;
23 }else {
24 return false;
28 bool Exporter::load(const char *fileName) {
29 if( loadWords(fileName,false) ) {
30 wordList = new WordList(words.size(),configHolder.e_list());
31 return true;
32 }else {
33 return false;
37 void Exporter::test(bool result) {
38 wordList->pass();
41 } //namespace freeRecite end