17 #ifndef __HUFFDATACOMPRESSOR_H__ 18 #define __HUFFDATACOMPRESSOR_H__ 49 std::vector<BYTE> &bin_out );
54 std::vector<adc16_t> &raw_in,
55 std::vector<BYTE> &bin_out );
61 std::vector<BYTE> &bin_out );
69 const char *buf,
size_t bufsize,
size_t &byteidx,
70 std::vector<adc16_t> &
adc );
81 std::vector< adc16_t > &adc);
121 std::vector<BYTE> &buf,
126 std::deque< std::bitset<1> > &bits );
129 void ReadNextByte( std::ifstream &fin, std::deque< std::bitset<1> > &bits,
bool &
status );
146 std::vector< std::pair<std::string, short> >
m_UCmMap;
void CompressChData(short nbadc, std::vector< adc16_t > &raw_in, std::vector< BYTE > &bin_out)
void SetVerbosity(int val)
void CompressEventData(short nbadc, size_t nch, size_t seqlen, std::vector< adc16_t > &raw_in, std::vector< BYTE > &bin_out)
std::map< short, std::string > m_CmMap
void AddToHuffBuffer(short val, bool rawadc)
HuffDataCompressor & operator=(const HuffDataCompressor &)
std::vector< HuffAccum_t > HuffBuffer
std::vector< std::pair< std::string, short > > m_UCmMap
static HuffDataCompressor & Instance()
void AddWordsToByteBuffer(std::string words, std::vector< BYTE > &buf, std::string &partbyte)
void DecompressEventData(short nbadc, size_t nch, size_t seqlen, const char *buf, size_t bufsize, size_t &byteidx, std::vector< adc16_t > &adc)
std::string GetBinaryString(short val, size_t strsize)
std::string GetCodeFromValue(short val)
bool SetNbitsAdc(short nbadc)
void ReadNextByte(size_t &byteidx, const char *buf, std::deque< std::bitset< 1 > > &bits)