Added new arguments to configuration::find_parameter() to allow for a list of
[AXE.git] / src / configuration.h
index 9c59c87..fd584ec 100644 (file)
@@ -5,7 +5,7 @@
 ***********************
 **      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.
@@ -36,7 +41,7 @@
 
 *****************************/
 
-/* 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
@@ -67,7 +72,7 @@
 //
 //  RELATIONS      : 
 //  SEE ALSO       :
-//  LAST MODIFIED  : Jul 24, 2002
+//  LAST MODIFIED  : Apr 13, 2007
 ///////////////////////////////////////////////////////////////////////////
 */
 
@@ -78,7 +83,7 @@ class configuration
    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:
 
@@ -95,7 +100,7 @@ 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);
 
 };