13#ifndef Fw_FilePacket_HPP
14#define Fw_FilePacket_HPP
66 const char *
const value
107 U32 bufferSize()
const;
190 const U32 sequenceIndex,
208 U32 fixedLengthSize()
const;
241 const U32 sequenceIndex,
272 const U32 sequenceIndex
372 StartPacket startPacket;
376 DataPacket dataPacket;
384 CancelPacket cancelPacket;
uint8_t U8
8-bit unsigned integer
C++-compatible configuration header for fprime configuration.
Class representing a CFDP checksum.
The type of a cancel packet.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this CancelPacket to a Buffer.
Header header
The packet header.
U32 bufferSize() const
Compute the buffer size needed to hold this CancelPacket.
void initialize(const U32 sequenceIndex)
Initialize a cancel packet.
The type of a data packet.
Header header
The packet header.
U32 byteOffset
The byte offset of the packet data into the destination file.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this DataPacket to a Buffer.
void initialize(const U32 sequenceIndex, const U32 byteOffset, const U16 dataSize, const U8 *const data)
Initialize a data packet.
U16 dataSize
The size of the file data in the packet.
const U8 * data
Pointer to the file data.
U32 bufferSize() const
Compute the buffer size needed to hold this DataPacket.
The type of an end packet.
U32 bufferSize() const
Compute the buffer size needed to hold this EndPacket.
void getChecksum(CFDP::Checksum &checksum) const
Get the checksum.
Header header
The packet header.
void initialize(const U32 sequenceIndex, const CFDP::Checksum &checksum)
Initialize an end packet.
void setChecksum(const CFDP::Checksum &checksum)
Set the checksum.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this EndPacket to a Buffer.
void initialize(const char *const value)
Initialize a PathName.
U32 bufferSize() const
Compute the buffer size needed to hold this PathName.
const char * value
Pointer to the path value.
A variable-length serializable buffer.
SerializeStatus
forward declaration for string
The type of a start packet.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this StartPacket to a Buffer.
Header header
The packet header.
PathName sourcePath
The source path.
U32 bufferSize() const
Compute the buffer size needed to hold this StartPacket.
U32 fileSize
The file size.
void initialize(const U32 fileSize, const char *const sourcePath, const char *const destinationPath)
Initialize a StartPacket with sequence number 0.
PathName destinationPath
The destination path.
SerializeStatus fromBuffer(const Buffer &buffer)
void fromCancelPacket(const CancelPacket &cancelPacket)
void fromEndPacket(const EndPacket &endPacket)
const CancelPacket & asCancelPacket() const
const StartPacket & asStartPacket() const
const EndPacket & asEndPacket() const
void fromDataPacket(const DataPacket &dataPacket)
void fromStartPacket(const StartPacket &startPacket)
const DataPacket & asDataPacket() const
const Header & asHeader() const
SerializeStatus toBuffer(Buffer &buffer) const