comparison Tester.h @ 15:dde5eb0f1826

...
author cannam
date Fri, 20 Mar 2009 13:41:00 +0000
parents 3019cb6b538d
children 07144cdcbedf
comparison
equal deleted inserted replaced
14:e48fdc8de790 15:dde5eb0f1826
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 {
56 public: 56 public:
57 Registrar(std::string name) { Tester::registerTest(name, this); } 57 Registrar(std::string name) { Tester::registerTest(name, this); }
58 virtual ~Registrar() { }
58 virtual Test *makeTest() = 0; 59 virtual Test *makeTest() = 0;
59 }; 60 };
60 61
61 template <typename T> 62 template <typename T>
62 class TestRegistrar : Registrar { 63 class TestRegistrar : Registrar {