Current Version: DLTestDOCLIB v1.0
DLTestDOCLIB provides sample implementations of two classes that are intended to facilitate application development and testing of DOCLIB and its add-on modules.
The DLTestManager class manages the run time environment for the set of DLTests defined by the developer. Upon successful completion of each DLTest, it displays the DLTest log messages to the screen. When any run-time exception occurs, it displays the detailed error message to the screen. The developer can make use of this error catching facility for testing and debugging purposes. All the run-time exception types defined in DLException class are supported. DLTestManager does not interpret, but simply make the command line arguments availabe to each DLTest.
The DLTest class provides an template for an individual driver application. WDevelopers can use the DLTest template to create a customized driver application using DOCLIB and its add-on modules by defining a derived class from DLTest. Two virtual functions need to be customized in a derived class of DLTest -- go() and showHelp(). Function go() should include the procedures of the application, including how to parse the set of command line arguments and what steps to execute (e.g. looping through a set of documents specified by the command line user). Function showHelp() displays the command-line help information to the end user, so that a new user is aware of what to expect when running the application and the command line syntax to run the application.