13 #ifndef Fw_FilePacket_HPP 14 #define Fw_FilePacket_HPP 24 class FileUplinkTester;
25 class FileDownlinkTester;
68 U32
getLength(
void)
const {
return this->m_length; };
71 const char*
getValue(
void)
const {
return this->m_value; };
101 void initialize(
const Type type,
102 const U32 sequenceIndex
106 U32 bufferSize()
const;
140 const char*
const sourcePath,
141 const char*
const destinationPath
195 const U32 byteOffset,
223 U32 fixedLengthSize()
const;
381 StartPacket m_startPacket;
385 DataPacket m_dataPacket;
389 EndPacket m_endPacket;
393 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.
friend class Svc::FileUplinkTester
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.
friend class Svc::FileDownlinkTester
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.
friend class Svc::FileUplinkTester
const Header & asHeader() const
friend class Svc::FileDownlinkTester
SerializeStatus toBuffer(Buffer &buffer) const
Convert this StartPacket to a Buffer.
friend class Svc::FileDownlinkTester
friend class Svc::FileUplinkTester
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 FilePacket::Header & asHeader() const
Get this as a Header.
const EndPacket & asEndPacket() const
U32 bufferSize() const
Compute the buffer size needed to hold this PathName.
friend class Svc::FileUplinkTester
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)
friend class Svc::FileDownlinkTester
SerializeStatus toBuffer(Buffer &buffer) const
Convert this CancelPacket to a Buffer.
RateGroupDivider component implementation.
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