summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/config/config_data.hh
diff options
context:
space:
mode:
authorschodet2005-04-05 22:04:03 +0000
committerschodet2005-04-05 22:04:03 +0000
commit426194305cecf47c4f6ee27d6c2f3431de61f630 (patch)
treef7eee5cbae82729ac9365df3aec0bd15b5df137e /2005/i/robert/src/config/config_data.hh
parent1bfba4d6caa690ab7a2e68625c902a8093092bf8 (diff)
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.
Diffstat (limited to '2005/i/robert/src/config/config_data.hh')
-rw-r--r--2005/i/robert/src/config/config_data.hh10
1 files changed, 7 insertions, 3 deletions
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<typename T>
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