|
a/src/common/rclconfig.cpp |
|
b/src/common/rclconfig.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: rclconfig.cpp,v 1.3 2005-01-24 13:17:58 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: rclconfig.cpp,v 1.4 2005-01-25 14:37:20 dockes Exp $ (C) 2004 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
|
4 |
|
5 |
#include <iostream>
|
5 |
#include <iostream>
|
6 |
|
6 |
|
7 |
#include "rclconfig.h"
|
7 |
#include "rclconfig.h"
|
8 |
#include "pathut.h"
|
8 |
#include "pathut.h"
|
9 |
#include "conftree.h"
|
9 |
#include "conftree.h"
|
|
|
10 |
#include "debuglog.h"
|
|
|
11 |
|
|
|
12 |
static DebugLog debuglog;
|
|
|
13 |
DebugLog *dbl = &debuglog;
|
|
|
14 |
class loginitializer {
|
|
|
15 |
public:
|
|
|
16 |
loginitializer() {
|
|
|
17 |
dbl->setlogfilename("stderr");
|
|
|
18 |
dbl->setloglevel(10);
|
|
|
19 |
}
|
|
|
20 |
};
|
|
|
21 |
static loginitializer lgntlzr;
|
10 |
|
22 |
|
11 |
using namespace std;
|
23 |
using namespace std;
|
12 |
|
24 |
|
13 |
RclConfig::RclConfig()
|
25 |
RclConfig::RclConfig()
|
14 |
: m_ok(false), conf(0), mimemap(0), mimeconf(0)
|
26 |
: m_ok(false), conf(0), mimemap(0), mimeconf(0)
|
|
... |
|
... |
52 |
mimeconf = new ConfTree(mpath.c_str());
|
64 |
mimeconf = new ConfTree(mpath.c_str());
|
53 |
if (mimeconf == 0) {
|
65 |
if (mimeconf == 0) {
|
54 |
cerr << "No mime conf file" << endl;
|
66 |
cerr << "No mime conf file" << endl;
|
55 |
return;
|
67 |
return;
|
56 |
}
|
68 |
}
|
|
|
69 |
setKeyDir(string(""));
|
57 |
// mimeconf->list();
|
70 |
// mimeconf->list();
|
58 |
m_ok = true;
|
71 |
m_ok = true;
|
59 |
return;
|
72 |
return;
|
60 |
}
|
73 |
}
|