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

A class for the cumulative calculation of checksums. More...

#include "gsexx.h"

Public Member Functions

 TCHK2 ()
 Default constructor. More...
 
void add (const intT &value)
 Add a value to the checksum. More...
 
intT value () const
 Return the checksum value. More...
 
std::string write () const
 write CHK2 line to string More...
 
void read (std::istream &is)
 read CHK2 line from istream More...
 

Static Public Attributes

static const char *const GSEID ="CHK2"
 GSE line idetifier. More...
 

Private Member Functions

void set (const intT &value)
 Set value when read from file. More...
 

Private Attributes

intT Msum
 checksum value More...
 

Friends

std::istream & operator>> (std::istream &, TCHK2 &chk2)
 

Related Functions

(Note that these are not member functions.)

std::string write () const
 
void read (std::istream &fis)
 

Detailed Description

A class for the cumulative calculation of checksums.

This class allows the cumulative calculation of checksums. The code is taken from the Appendix A.1 from the Conference Room Paper/243 of the Group of Scientific Experts.

Definition at line 173 of file gsexx.h.


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