***********************
** FILE NAME : configuration.h
** SYSTEM NAME : AXE - Andromeda X-windows Encapsulation
-** VERSION NUMBER : $Revision: 1.3 $
+** VERSION NUMBER : $Revision: 1.4 $
**
** DESCRIPTION : Definition of configuration class
**
/*****************************
$Log: configuration.h,v $
- Revision 1.3 2002-11-02 14:35:15 arjen
+ Revision 1.4 2007-05-04 14:01:22 arjen
+ Added new arguments to configuration::find_parameter() to allow for a list of
+ sections and a list of parameters in sections.
+ The new arguments are section index and parameter index (default = 0).
+
+ Revision 1.3 2002/11/02 14:35:15 arjen
Uses the XML2 library
BugFix: segfault when finding a parameters that is not in the user-sepcific
config tree.
*****************************/
-/* static const char *RCSID = "$Id: configuration.h,v 1.3 2002-11-02 14:35:15 arjen Exp $"; */
+/* static const char *RCSID = "$Id: configuration.h,v 1.4 2007-05-04 14:01:22 arjen Exp $"; */
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
//
// RELATIONS :
// SEE ALSO :
-// LAST MODIFIED : Jul 24, 2002
+// LAST MODIFIED : Apr 13, 2007
///////////////////////////////////////////////////////////////////////////
*/
xmlDocPtr user; // User-specific config tree
String app_name; // Name of the application and XML root element
- xmlNodePtr xmlFindTag(xmlNodePtr, const String);
+ xmlNodePtr xmlFindTag(xmlNodePtr, const String, int n = 0);
public:
// Return the value of a config parameter
- String find_parameter(const String section, const String parameter);
+ String find_parameter(const String section, const String parameter, int sec_n = 0, int param_n = 0);
};