GSE++ library: reading and writing GSE waveforms
|
Handle checksum and sample count. More...
#include "gsexx.h"
Public Member Functions | |
const TCHK2 & | checksum () const |
return the checksum More... | |
intT | nread () const |
return the number of samples read More... | |
intT | msamp () const |
return total number of samples to read More... | |
bool | hot () const |
return true if not all samples are processed More... | |
Static Public Attributes | |
static const char *const | GSEID ="DAT2" |
GSE line idetifier. More... | |
Protected Member Functions | |
TDAT2sum (const intT &msamp) | |
only derived class should create an instance More... | |
void | add (const intT &value) |
count a sample More... | |
Private Attributes | |
TCHK2 | Mchecksum |
The checksum is handled by the base class. More... | |
intT | Mnsamp |
number of samples read More... | |
intT | Mmsamp |
total number of samples to read More... | |
Handle checksum and sample count.
This class handles the checksum and sample count for DAT2 input as well as for DAT2 output. It should only be used by the TDAT2 classes by inheritance.