13 #ifndef Fw_FilePacket_HPP
14 #define Fw_FilePacket_HPP
66 const char *
const value
74 return this->m_length;
115 const U32 sequenceIndex
119 U32 bufferSize()
const;
133 return this->m_sequenceIndex;
162 const char *
const sourcePath,
163 const char *
const destinationPath
174 return this->m_destinationPath;
179 return this->m_sourcePath;
184 return this->m_fileSize;
224 const U32 sequenceIndex,
225 const U32 byteOffset,
238 return this->m_header;
243 return this->m_byteOffset;
248 return this->m_dataSize;
261 U32 fixedLengthSize()
const;
294 return this->m_header;
300 const U32 sequenceIndex,
331 const U32 sequenceIndex
342 return this->m_header;
435 StartPacket m_startPacket;
439 DataPacket m_dataPacket;
443 EndPacket m_endPacket;
447 CancelPacket m_cancelPacket;
uint8_t U8
8-bit unsigned integer
C++-compatible configuration header for fprime configuration.
Class representing a 32-bit checksum as mandated by the CCSDS File Delivery Protocol.
The type of a cancel packet.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this CancelPacket to a Buffer.
const FilePacket::Header & asHeader() const
Get this as a 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.
const FilePacket::Header & asHeader() const
Get this as a Header.
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.
U32 getByteOffset() const
Get the byte offset.
const U8 * getData() const
Get the data.
U32 getDataSize() const
Get the data size.
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.
void initialize(const U32 sequenceIndex, const CFDP::Checksum &checksum)
Initialize an end packet.
void setChecksum(const CFDP::Checksum &checksum)
Set the checksum.
const FilePacket::Header & asHeader() const
Get this as a Header.
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 * getValue(void) const
Get the path name value.
U32 getLength(void) const
Get the length of the path name value.
A variable-length serializable buffer.
SerializeStatus
forward declaration for string
The type of a start packet.
const PathName & getSourcePath() const
Get the source path.
SerializeStatus toBuffer(Buffer &buffer) const
Convert this StartPacket to a Buffer.
const PathName & getDestinationPath() const
Get the destination path.
U32 getFileSize() const
Get the file size.
U32 bufferSize() const
Compute the buffer size needed to hold this StartPacket.
void initialize(const U32 fileSize, const char *const sourcePath, const char *const destinationPath)
Initialize a StartPacket with sequence number 0.
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