Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxTest.h

00001 /*
00002  *  Copyright (c) 2000, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Edo Poll                (poll@wins.uva.nl)
00007  *  Dennis Koelma           (koelma@wins.uva.nl)
00008  */
00009 
00010 #include "HxStringList.h"
00011 #include "HxIoFwd.h"
00012 
00013 #ifndef HxTest_h
00014 #define HxTest_h
00015 
00016 class L_HXBASIS HxTest
00017 {
00018 public:
00019                             HxTest();
00020     virtual                 ~HxTest();
00021 
00022     virtual void            run();
00023     virtual bool            result() const;
00024     virtual HxString        name() const;
00025     virtual void            report(STD_OSTREAM&) const;
00026 
00027     int                     getNr() const;
00028 protected:
00029 
00030     void                    setFailure();
00031     void                    addReport(HxString msg);
00032 
00033 private:
00034 
00035     bool                    _result;
00036 #pragma warning(disable: 4251)
00037     HxStringList            _report;
00038 #pragma warning(default: 4251)
00039     int                     _nr;
00040     static int              _cnt;
00041 };
00042 
00043 // Test lists are null terminated
00044 
00045 bool L_HXBASIS
00046 HxRunTests(HxTest** testList);
00047 
00048 void L_HXBASIS
00049 HxDeleteTests(HxTest** testList);
00050 
00051 void L_HXBASIS
00052 HxReportTests(STD_OSTREAM&, HxTest** testList);
00053 
00058 int L_HXBASIS
00059 HxTestMain(HxString testSuite, bool verbose, HxTest** testList);
00060 
00061 #endif

Generated on Tue Feb 3 14:18:42 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001