comparison Tester.h @ 8:3019cb6b538d

* Add nondeterministic and verbose options to control output * Dump returned features in a few more situations, if verbose is set * Dump features to stdout rather than stderr
author cannam
date Wed, 18 Mar 2009 10:51:30 +0000
parents d8724c5a6d83
children dde5eb0f1826
comparison
equal deleted inserted replaced
7:43eb3a4b95c8 8:3019cb6b538d
45 #include "Test.h" 45 #include "Test.h"
46 46
47 class Tester 47 class Tester
48 { 48 {
49 public: 49 public:
50 Tester(std::string pluginKey); 50 Tester(std::string pluginKey, Test::Options);
51 ~Tester(); 51 ~Tester();
52 52
53 bool test(int &notes, int &warnings, int &errors); 53 bool test(int &notes, int &warnings, int &errors);
54 54
55 class Registrar { 55 class Registrar {
69 registry()[name] = r; 69 registry()[name] = r;
70 } 70 }
71 71
72 protected: 72 protected:
73 std::string m_key; 73 std::string m_key;
74 Test::Options m_options;
74 typedef std::map<std::string, Registrar *> Registry; 75 typedef std::map<std::string, Registrar *> Registry;
75 static Registry &registry(); 76 static Registry &registry();
76 }; 77 };
77 78
78 #endif 79 #endif