2 TestPat.hpp version 1.0
\r
3 by Robert Schmidt of Ztiff Zox Softwear 1993
\r
5 Declares the TestPatterns class which is further defined in
\r
10 #define _TestPat_HPP
\r
13 #include "RegTable.HPP"
\r
18 // testType declares the possible types of screen patterns to test your
\r
19 // wonderful modes with. Note that 'tests' is there just to provide a
\r
20 // constant equaling the number of tests.
\r
22 { autoDetect, testText16, testText8, test4x16, test1x256,
\r
25 static char *string[tests];
\r
28 TestPatterns(testType t=autoDetect) { testNo = t; }
\r
29 testType operator++() { if (++testNo==tests) testNo=testType(0);
\r
31 testType operator--() { if (--testNo<testType(0)) testNo=tests-1;
\r
33 testType getTest() { return testNo; }
\r
34 void run(RegisterTable &);
\r