GSE++ library: reading and writing GSE waveforms
GSE2::waveform::TDAT2sum Class Reference

Handle checksum and sample count. More...

#include "gsexx.h"

Inheritance diagram for GSE2::waveform::TDAT2sum:
Collaboration diagram for GSE2::waveform::TDAT2sum:

Public Member Functions

const TCHK2checksum () 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...
 

Detailed Description

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.

See also
GSE2::waveform::TDAT2read
GSE2::waveform::TDAT2write

Definition at line 295 of file gsexx.h.


The documentation for this class was generated from the following files: