Switch to unified view

a/src/common/rclconfig.h b/src/common/rclconfig.h
...
...
121
    /** Set current directory reference, and fetch automatic parameters. */
121
    /** Set current directory reference, and fetch automatic parameters. */
122
    void setKeyDir(const string &dir);
122
    void setKeyDir(const string &dir);
123
    string getKeyDir() const {return m_keydir;}
123
    string getKeyDir() const {return m_keydir;}
124
124
125
    /** Get generic configuration parameter according to current keydir */
125
    /** Get generic configuration parameter according to current keydir */
126
    bool getConfParam(const string &name, string &value) const
126
    bool getConfParam(const string &name, string &value, 
127
                      bool shallow=false) const
127
    {
128
    {
128
    if (m_conf == 0)
129
    if (m_conf == 0)
129
        return false;
130
        return false;
130
    return m_conf->get(name, value, m_keydir);
131
    return m_conf->get(name, value, m_keydir, shallow);
131
    }
132
    }
132
    /** Variant with autoconversion to int */
133
    /** Variant with autoconversion to int */
133
    bool getConfParam(const string &name, int *value) const;
134
    bool getConfParam(const string &name, int *value, bool shallow=false) const;
134
    /** Variant with autoconversion to bool */
135
    /** Variant with autoconversion to bool */
135
    bool getConfParam(const string &name, bool *value) const;
136
    bool getConfParam(const string &name, bool *value, 
137
                      bool shallow=false) const;
136
    /** Variant with conversion to vector<string>
138
    /** Variant with conversion to vector<string>
137
     *  (stringToStrings). Can fail if the string is malformed. */
139
     *  (stringToStrings). Can fail if the string is malformed. */
138
    bool getConfParam(const string &name, vector<string> *value) const;
140
    bool getConfParam(const string &name, vector<string> *value, 
141
                      bool shallow=false) const;
139
    /** Variant with conversion to vector<int> */
142
    /** Variant with conversion to vector<int> */
140
    bool getConfParam(const string &name, vector<int> *value) const;
143
    bool getConfParam(const string &name, vector<int> *value, 
144
                      bool shallow=false) const;
141
145
142
    enum ThrStage {ThrIntern=0, ThrSplit=1, ThrDbWrite=2};
146
    enum ThrStage {ThrIntern=0, ThrSplit=1, ThrDbWrite=2};
143
    pair<int, int> getThrConf(ThrStage who) const;
147
    pair<int, int> getThrConf(ThrStage who) const;
144
148
145
    /** 
149
    /**