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;
const U8 * getData() const
Get the data.
U32 bufferSize() const
Compute the buffer size needed to hold this EndPacket.
void fromCancelPacket(const CancelPacket &cancelPacket)
A variable-length serializable buffer.
void fromDataPacket(const DataPacket &dataPacket)
SerializeStatus toBuffer(Buffer &buffer) const
Convert this DataPacket to a Buffer.
U32 bufferSize() const
Compute the buffer size needed to hold this CancelPacket.
void setChecksum(const CFDP::Checksum &checksum)
Set the checksum.
U32 bufferSize() const
Compute the buffer size needed to hold this StartPacket.
The type of a cancel packet.
const FilePacket::Header & asHeader() const
Get this as a Header.
void fromEndPacket(const EndPacket &endPacket)
U32 getByteOffset() const
Get the byte offset.
const FilePacket::Header & asHeader() const
Get this as a Header.
The type of a data packet.
const DataPacket & asDataPacket() const
U32 getFileSize() const
Get the file size.
void getChecksum(CFDP::Checksum &checksum) const
Get the checksum.
void fromStartPacket(const StartPacket &startPacket)
U32 getDataSize() const
Get the data size.
SerializeStatus toBuffer(Buffer &buffer) const
const FilePacket::Header & asHeader() const
Get this as a Header.
void initialize(const char *const value)
Initialize a PathName.
SerializeStatus
forward declaration for string
SerializeStatus toBuffer(Buffer &buffer) const
Convert this EndPacket to a Buffer.
const char * getValue(void) const
Get the path name value.
Class representing a 32-bit checksum as mandated by the CCSDS File Delivery Protocol.
const PathName & getDestinationPath() const
Get the destination path.
const Header & asHeader() const
SerializeStatus toBuffer(Buffer &buffer) const
Convert this StartPacket to a Buffer.
The type of a start packet.
U32 bufferSize() const
Compute the buffer size needed to hold this DataPacket.
const StartPacket & asStartPacket() const
U32 getLength(void) const
Get the length of the path name value.
const EndPacket & asEndPacket() const
U32 bufferSize() const
Compute the buffer size needed to hold this PathName.
C++-compatible configuration header for fprime configuration.
void initialize(const U32 fileSize, const char *const sourcePath, const char *const destinationPath)
Initialize a StartPacket with sequence number 0.
uint8_t U8
8-bit unsigned integer
SerializeStatus fromBuffer(const Buffer &buffer)
SerializeStatus toBuffer(Buffer &buffer) const
Convert this CancelPacket to a Buffer.
void initialize(const U32 sequenceIndex, const U32 byteOffset, const U16 dataSize, const U8 *const data)
Initialize a data packet.
void initialize(const U32 sequenceIndex, const CFDP::Checksum &checksum)
Initialize an end packet.
void initialize(const U32 sequenceIndex)
Initialize a cancel packet.
const PathName & getSourcePath() const
Get the source path.
The type of an end packet.
const CancelPacket & asCancelPacket() const