summaryrefslogtreecommitdiff
path: root/i/marvin/src/tester
diff options
context:
space:
mode:
authorhaller2006-05-15 21:45:09 +0000
committerhaller2006-05-15 21:45:09 +0000
commit449ff51e3db5d2292cecb938f68cfec322249b7a (patch)
tree3145c2b42b6f83a5e534c1386ddf685b95dc15bf /i/marvin/src/tester
parentfa04a23b27eb020dce323d6c0d8f754b182db4ac (diff)
* Importation de la classe es
* Dégraissage au lance-flamme de es * création d'un test_es * Ajout du Makefile.defs pour es * Ajout du répertoires es dans src/Makefile.defs * Modif de Makefile.defs de proto parce que les OBJECTS sentaient pas bons * Passage de Config de Tester en protected pour que les classes à tester puissent la manger
Diffstat (limited to 'i/marvin/src/tester')
-rw-r--r--i/marvin/src/tester/tester.cc4
-rw-r--r--i/marvin/src/tester/tester.hh5
2 files changed, 5 insertions, 4 deletions
diff --git a/i/marvin/src/tester/tester.cc b/i/marvin/src/tester/tester.cc
index 2532f7b..61f577e 100644
--- a/i/marvin/src/tester/tester.cc
+++ b/i/marvin/src/tester/tester.cc
@@ -31,8 +31,8 @@
/// Constructor.
Tester::Tester (int argc, char **argv, const std::string &description)
- : config_ (argc, argv), program_(argv[0]), description_ (description),
- showCmd_ (false)
+ : program_(argv[0]), description_ (description),
+ showCmd_ (false), config_ (argc, argv)
{
// Parse command line
getOpt (argc, argv);
diff --git a/i/marvin/src/tester/tester.hh b/i/marvin/src/tester/tester.hh
index ef97287..b9aa312 100644
--- a/i/marvin/src/tester/tester.hh
+++ b/i/marvin/src/tester/tester.hh
@@ -38,8 +38,6 @@ class Tester
/// DataCircularBufferFactory for beeing destruct at the end of the program.
/// Note : it must stay at the begining of the class !
DataCircularBufferFactory dbc;
- /// The config.
- Config config_;
/// The interperter.
Interpreter interpreter_;
/// Program name.
@@ -56,6 +54,9 @@ class Tester
void listCmd (void) const;
/// Show commands instead of run them.
bool showCmd_;
+ protected:
+ /// The config.
+ Config config_;
public:
/// Constructor.
Tester (int argc, char ** argv, const std::string &description = "");