1 #ifndef APE_PREDICTOR_H
2 #define APE_PREDICTOR_H
4 /*************************************************************************************************
5 IPredictorCompress - the interface for compressing (predicting) data
6 *************************************************************************************************/
7 class IPredictorCompress
10 IPredictorCompress(int nCompressionLevel
) {}
11 virtual ~IPredictorCompress() {}
13 virtual int CompressValue(int nA
, int nB
= 0) = 0;
14 virtual int Flush() = 0;
17 /*************************************************************************************************
18 IPredictorDecompress - the interface for decompressing (un-predicting) data
19 *************************************************************************************************/
20 class IPredictorDecompress
23 IPredictorDecompress(int nCompressionLevel
, int nVersion
) {}
24 virtual ~IPredictorDecompress() {}
26 virtual int DecompressValue(int nA
, int nB
= 0) = 0;
27 virtual int Flush() = 0;
30 #endif // #ifndef APE_PREDICTOR_H