/*
* @file convertecg.h
* @brief
* @author goudh
* @version 1.0
* @date 2021年05月08日 15时54分35秒
*/
#include <iostream>
using namespace std;
#ifndef NULL
#define NULL 0
#endif
class DownEcgSamples
{
public:
DownEcgSamples(){}
DownEcgSamples(const int ifs, const int inputBase, const int inputGain,
const int ofs, const int outputBase, const int outputGain)
{
init(ifs,inputBase,inputGain, ofs, outputBase,outputGain);
}
~DownEcgSamples()
{
if (buf)
{
delete [] buf;
buf = NULL;
}