|  | F´ Flight Software - C/C++ Documentation
    devel
    A framework for building embedded system applications to NASA flight quality standards. | 
Class representing a CFDP checksum. More...
#include <CFDP/Checksum/Checksum.hpp>
| Public Member Functions | |
| Checksum () | |
| Construct a fresh Checksum object.  More... | |
| Checksum (const U32 value) | |
| Construct a Checksum object and initialize it with a value.  More... | |
| Checksum (const Checksum &original) | |
| Copy a Checksum object.  More... | |
| ~Checksum () | |
| Destroy a Checksum object.  More... | |
| Checksum & | operator= (const Checksum &checksum) | 
| Assign checksum to this.  More... | |
| bool | operator== (const Checksum &checksum) const | 
| Compare checksum and this for equality.  More... | |
| bool | operator!= (const Checksum &checksum) const | 
| Compare checksum and this for inequality.  More... | |
| void | update (const U8 *const data, const U32 offset, const U32 length) | 
| Update the checksum value by accumulating the words in the data.  More... | |
| U32 | getValue () const | 
| Get the checksum value.  More... | |
Class representing a CFDP checksum.
Definition at line 23 of file Checksum.hpp.
| CFDP::Checksum::Checksum | ( | ) | 
Construct a fresh Checksum object.
Definition at line 22 of file Checksum.cpp.
| CFDP::Checksum::Checksum | ( | const U32 | value | ) | 
Construct a Checksum object and initialize it with a value.
Definition at line 28 of file Checksum.cpp.
| CFDP::Checksum::Checksum | ( | const Checksum & | original | ) | 
Copy a Checksum object.
Definition at line 34 of file Checksum.cpp.
| CFDP::Checksum::~Checksum | ( | ) | 
Destroy a Checksum object.
Definition at line 40 of file Checksum.cpp.
| U32 CFDP::Checksum::getValue | ( | ) | const | 
Get the checksum value.
Definition at line 65 of file Checksum.cpp.
| bool CFDP::Checksum::operator!= | ( | const Checksum & | checksum | ) | const | 
Compare checksum and this for inequality.
Definition at line 59 of file Checksum.cpp.
Assign checksum to this.
Definition at line 46 of file Checksum.cpp.
| bool CFDP::Checksum::operator== | ( | const Checksum & | checksum | ) | const | 
Compare checksum and this for equality.
Definition at line 53 of file Checksum.cpp.
| void CFDP::Checksum::update | ( | const U8 *const | data, | 
| const U32 | offset, | ||
| const U32 | length | ||
| ) | 
Update the checksum value by accumulating the words in the data.
| data | The data | 
| offset | The offset of the start of the data, relative to the start of the file | 
| length | The length of the data in bytes | 
Definition at line 71 of file Checksum.cpp.