-
Notifications
You must be signed in to change notification settings - Fork 1
/
WKdmTester.hh
47 lines (33 loc) · 1.32 KB
/
WKdmTester.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// WKdmTester.hh
// Scott F. Kaplan -- [email protected]
// October 1997
// A tester designed to work on the Wilson-Kaplan-0
// compression/decompression algorithm. Note that it note only
// performs the requested compression and decompression, but also
// performs and keeps extra statisics for its own experiements that
// measure characteristics specific to this algorithm.
// Prevent multiple inclusion by surrounding the header file with
// preprocessor directives.
#if !defined (_WKdmTESTER_HH)
#define _WKdmTESTER_HH
#include "CompressionAlgorithmTester.hh"
class WKdmTester : public CompressionAlgorithmTester {
public:
// The default constructor.
WKdmTester (char* outputFilename, const bool initUseFixedImages) :
CompressionAlgorithmTester(outputFilename, initUseFixedImages) {}
protected:
// Perform the actual tasks of timing the compression and
// decompression of a given algorithm.
virtual void performCompressionTest
(void* uncompressedData,
unsigned int uncompressedBytes,
unsigned int& returnCompressedSize,
unsigned long long& returnCompressionTime);
virtual void performDecompressionTest
(void* uncompressedData,
unsigned int uncompressedBytes,
unsigned int& returnPreDecompressionSize,
unsigned long long& returnDecompressionTime);
};
#endif // _WKdmTESTER_HH