X-Git-Url: http://www.andromeda.nl/gitweb/?a=blobdiff_plain;f=src%2Fconfiguration.h;h=fd584ec476eaf5b13a63b86fcb75274dfe46da09;hb=bc014628c407db99abf7e0461aa0e961493726aa;hp=9c59c8709b395a3b950231718fc69e5c10e1db3a;hpb=644da49529f2b634c149839230210fa294a604d6;p=AXE.git diff --git a/src/configuration.h b/src/configuration.h index 9c59c87..fd584ec 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -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 ** @@ -23,7 +23,12 @@ /***************************** $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); };