|
a/src/common/rclconfig.h |
|
b/src/common/rclconfig.h |
1 |
#ifndef _RCLCONFIG_H_INCLUDED_
|
1 |
#ifndef _RCLCONFIG_H_INCLUDED_
|
2 |
#define _RCLCONFIG_H_INCLUDED_
|
2 |
#define _RCLCONFIG_H_INCLUDED_
|
3 |
/* @(#$Id: rclconfig.h,v 1.2 2004-12-15 15:00:36 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: rclconfig.h,v 1.3 2004-12-17 13:01:01 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
|
4 |
|
5 |
#include "conftree.h"
|
5 |
#include "conftree.h"
|
6 |
|
6 |
|
7 |
class RclConfig {
|
7 |
class RclConfig {
|
8 |
int m_ok;
|
8 |
int m_ok;
|
|
... |
|
... |
28 |
{
|
28 |
{
|
29 |
keydir = dir;
|
29 |
keydir = dir;
|
30 |
conf->get("defaultcharset", defcharset, keydir);
|
30 |
conf->get("defaultcharset", defcharset, keydir);
|
31 |
conf->get("defaultlanguage", deflang, keydir);
|
31 |
conf->get("defaultlanguage", deflang, keydir);
|
32 |
string str;
|
32 |
string str;
|
33 |
conf->get("guesscharset", deflang, str);
|
33 |
conf->get("guesscharset", str, keydir);
|
34 |
guesscharset = ConfTree::stringToBool(str);
|
34 |
guesscharset = ConfTree::stringToBool(str);
|
35 |
}
|
35 |
}
|
36 |
bool getConfParam(const string &name, string &value)
|
36 |
bool getConfParam(const string &name, string &value)
|
37 |
{
|
37 |
{
|
38 |
if (conf == 0)
|
38 |
if (conf == 0)
|