Octane v1.01.20 - The Open Compression Toolkit for C++ | http://octane.sourceforge.net/ |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 //--------------------------------------------------------------------------- 00011 00012 //--------------------------------------------------------------------------- 00013 // recursive header protection 00014 #ifndef SampleStatCompressorH 00015 #define SampleStatCompressorH 00016 //--------------------------------------------------------------------------- 00017 00018 //--------------------------------------------------------------------------- 00019 // application includes 00020 #include "../compressor_statistical.hpp" 00021 #include "../../coders/coder_sample/samplecoder.hpp" 00022 #include "../../parsers/parser_sample/sampleparser.hpp" 00023 #include "../../modelers/modeler_sample/samplemodeler.hpp" 00024 //--------------------------------------------------------------------------- 00025 00026 00027 00028 //--------------------------------------------------------------------------- 00035 class SampleStatCompressor : public OctaneCompressor_Statistical 00036 { 00037 public: 00039 SampleStatCompressor(bool registerme=false); 00041 ~SampleStatCompressor() {;}; 00042 public: 00043 //--------------------------------------------------------------------------- 00044 // OCTANE PUBLIC API - RTTI AND HELP FUNCTIONS - these are supported by all derived classes 00045 virtual std::string GetClassName() {return "StatSample";} 00046 virtual std::string GetDescription() {return "Sample Statistical Compressor";} 00047 //--------------------------------------------------------------------------- 00048 public: 00049 //--------------------------------------------------------------------------- 00050 // COMPRESSOR PUBLIC API - FACTORY FUNCTION / MAKE AN INSTANTIATION OF DERIVED COMPRESSOR 00051 virtual OctaneCompressor *MakeCompressorInstantiation() {return new SampleStatCompressor();}; 00052 //--------------------------------------------------------------------------- 00053 }; 00054 //--------------------------------------------------------------------------- 00055 00056 00057 00058 00059 00060 00061 //--------------------------------------------------------------------------- 00062 #endif 00063 //---------------------------------------------------------------------------