|
GSE++ library: reading and writing GSE waveforms
|
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) |
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.