00001 #ifndef SimpleDecoderBase_HPP 00002 #define SimpleDecoderBase_HPP 00003 00008 #include "io/codec/decoder/DecoderBase.hpp" 00009 #include "io/output/normal/BufferedNormalOutput.hpp" 00010 #include <vector> 00011 00020 template <class O = BufferedNormalOutput<> > 00021 class SimpleDecoderBase : public DecoderBase<O> 00022 { 00023 public: 00024 SimpleDecoderBase(const typename DecoderBase<O>::params_t* par) 00025 : DecoderBase<O>(par){} 00026 void setCodeInverse(const std::vector<item_t>& code_inverse) 00027 { 00028 this->code_inverse.insert( this->code_inverse.end(), 00029 code_inverse.begin(), code_inverse.end()); 00030 } 00031 00032 protected: 00039 std::vector<item_t> code_inverse; 00040 }; 00041 00042 00043 #endif