5 #include "ConfigHolder.h"
9 ConfigHolder::ConfigHolder() {
13 void ConfigHolder::load(const char *rootDir
,
14 const char *gDir
, const char *soundDir
) {
15 rootDirectory
= rootDir
;
16 globalDirectory
= gDir
;
18 soundDirectory
= soundDir
;
20 std::cerr
<< "rootDir() " << this->rootDir() << std::endl
;
21 std::cerr
<< "tasksDir()" << tasksDir() << std::endl
;
22 std::cerr
<< "mgrFile()" << mgrFile() << std::endl
;
23 std::cerr
<< "localDictFile()" << localDictFile() << std::endl
;
24 std::cerr
<< "globalDictFile()" << globalDictFile() << std::endl
;
25 std::cerr
<< "keyFile()" << keyFile() << std::endl
;
26 std::cerr
<< "doneFile()" << doneFile() << std::endl
;
30 void ConfigHolder::setRootDir(const char *dir
) {
34 void ConfigHolder::setGlobalDir(const char *dir
) {
35 globalDirectory
= dir
;
38 void ConfigHolder::soundDir(const char *dir
) {
43 const std::vector
<unsigned> *ConfigHolder::e_list() {
45 initPt
.push_back(0); //list[0] is just a placeholder.
49 const std::vector
<unsigned> *ConfigHolder::r_list() {
51 initPt
.push_back(0); //list[0] is just a placeholder.
58 const std::vector
<unsigned> *ConfigHolder::s_list() {
60 initPt
.push_back(0); //list[0] is just a placeholder.
63 initPt
.push_back(std::numeric_limits
<unsigned>::max());
67 const std::vector
<unsigned> *ConfigHolder::t_list() {
69 initPt
.push_back(0); //list[0] is just a placeholder.
74 //This is a global variable.
75 ConfigHolder configHolder
;
77 }//End of namespaec freeRecite.