From 426194305cecf47c4f6ee27d6c2f3431de61f630 Mon Sep 17 00:00:00 2001 From: schodet Date: Tue, 5 Apr 2005 22:04:03 +0000 Subject: Fix du test pour les IntList. FloatList en double (oui, le nom est trompeur). Bug avec str. Parsage de chaîne et changement de la règle "input". Support des commentaires. --- 2005/i/robert/src/config/config_data.hh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '2005/i/robert/src/config/config_data.hh') diff --git a/2005/i/robert/src/config/config_data.hh b/2005/i/robert/src/config/config_data.hh index bf62bd8..0d0944e 100644 --- a/2005/i/robert/src/config/config_data.hh +++ b/2005/i/robert/src/config/config_data.hh @@ -56,10 +56,14 @@ class ConfigData template void add (const std::string &id, const T &val); private: - /// Lance le parseur. - void parse (const std::string &file); + /// Initialise (lit la ligne de commande et les fichiers de config. + void init (int &argc, char **&argv, const std::string &file); + /// Lance le parseur sur un fichier. + void parseFile (const std::string &file); + /// Lance le parseur sur une chaîne. + void parseString (const std::string &s); }; -#include "config/config_data.tcc" +#include "config_data.tcc" #endif // config_data_hh -- cgit v1.2.3