|
a/src/conftree.h |
|
b/src/conftree.h |
|
... |
|
... |
163 |
m_submaps.clear();
|
163 |
m_submaps.clear();
|
164 |
m_order.clear();
|
164 |
m_order.clear();
|
165 |
}
|
165 |
}
|
166 |
|
166 |
|
167 |
/**
|
167 |
/**
|
168 |
* Get value for named parameter, from specified subsection (looks in
|
168 |
* Get string value for named parameter, from specified subsection (looks
|
169 |
* global space if sk is empty).
|
169 |
* in global space if sk is empty).
|
170 |
* @return 0 if name not found, 1 else
|
170 |
* @return 0 if name not found, 1 else
|
171 |
*/
|
171 |
*/
|
172 |
virtual int get(const string& name, string& value,
|
172 |
virtual int get(const string& name, string& value,
|
173 |
const string& sk = string()) const;
|
173 |
const string& sk = string()) const;
|
174 |
|
174 |
|
175 |
/**
|
175 |
/**
|
|
|
176 |
* Get integer value for named parameter, from specified subsection (looks
|
|
|
177 |
* in global space if sk is empty).
|
|
|
178 |
* @return 0 if name not found, 1 else
|
|
|
179 |
*/
|
|
|
180 |
virtual int get(const string& name, int* value,
|
|
|
181 |
const string& sk = string()) const;
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
/**
|
176 |
* Set value for named parameter in specified subsection (or global)
|
185 |
* Set value for named string parameter in specified subsection (or global)
|
177 |
* @return 0 for error, 1 else
|
186 |
* @return 0 for error, 1 else
|
178 |
*/
|
187 |
*/
|
179 |
virtual int set(const string& nm, const string& val,
|
188 |
virtual int set(const string& nm, const string& val,
|
|
|
189 |
const string& sk = string());
|
|
|
190 |
/**
|
|
|
191 |
* Set value for named integer parameter in specified subsection (or global)
|
|
|
192 |
* @return 0 for error, 1 else
|
|
|
193 |
*/
|
|
|
194 |
virtual int set(const string& nm, long long val,
|
180 |
const string& sk = string());
|
195 |
const string& sk = string());
|
181 |
|
196 |
|
182 |
/**
|
197 |
/**
|
183 |
* Remove name and value from config
|
198 |
* Remove name and value from config
|
184 |
*/
|
199 |
*/
|