Description:
This class represents an LDPPacket with a checksum included at the end.
| Data Fields | ||
| private | LDPTrailer* | _trailer |
| Constructors / Destructor | |
| protected | ChecksumLDPPacket(const ChecksumLDPPacket& orig)Copy constructor. |
| public | ChecksumLDPPacket()Construct an empty packet. |
| public | ChecksumLDPPacket(int size)Construct a packet with a given number of data bytes. |
| Methods | |||
| public | virtual constant |
int | checksum()Return the checksum for this packet. |
| public | virtual | void | checksum(int checksum) |
| public | virtual | CCSDSPacket* | copy()Virtual wrapper around the copy constructor. |
| public | virtual | int | calculateChecksum()Calculate the checksum for this packet from its contents. |
| public | virtual | void | finish()This method should be called after all modifications have been made to the packet. It updates the checksum at the end of the packet. |
| protected | virtual constant |
int | trailerSize()Methods for handing trailer. |
| protected | virtual | void | readTrailer(Reader* r)Throws: Interpreter::Exception |
| protected | virtual | void | writeTrailer(Writer* w)Throws: Interpreter::Exception |
| Operators |