DLTest.h

Go to the documentation of this file.
00001 #ifndef _DLTEST_H
00002 #define _DLTEST_H
00003 
00004 #include <string>
00005 using namespace std;
00006 
00008 const static char* RESULTS[] = {{"Failed"}, {"Passed"}};
00009 
00010 
00023 class DLTest
00024 {
00025 public:
00026 
00037         DLTest( char* name, int argc, char** argv);
00038 
00042         virtual ~DLTest(void);
00043 
00048         string getTestName() {return  static_cast<string>(testName);};
00049 
00054         string getResult() {return static_cast<string>(RESULTS[result]);};
00055 
00059         void appendToTestLog(string newInfo);
00060 
00065         string getTestLog() {return testLog;};
00066 
00070         virtual int go()=0;
00071 
00076         virtual void showHelp()=0;
00077 
00078 protected:
00079         
00081         int dlArgc;
00082 
00084         char** dlArgv;
00085 
00087         char* testName;
00088 
00090         string testLog;
00091 
00093         int result;
00094 };
00095 
00096 
00097 #endif //_DLTEST_H

DLTestDOCLIB Library is an add-on module of DOCLIB. DOCLIB is being developed under contract by a collaboration between:

The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007