![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
The type of a start packet. More...
#include <Fw/FilePacket/FilePacket.hpp>
Public Member Functions | |
void | initialize (const U32 fileSize, const char *const sourcePath, const char *const destinationPath) |
Initialize a StartPacket with sequence number 0. | |
U32 | bufferSize () const |
Compute the buffer size needed to hold this StartPacket. | |
SerializeStatus | toBuffer (Buffer &buffer) const |
Convert this StartPacket to a Buffer. | |
const PathName & | getDestinationPath () const |
Get the destination path. | |
const PathName & | getSourcePath () const |
Get the source path. | |
U32 | getFileSize () const |
Get the file size. | |
Friends | |
union | FilePacket |
The type of a start packet.
Definition at line 139 of file FilePacket.hpp.
U32 Fw::FilePacket::StartPacket::bufferSize | ( | ) | const |
Compute the buffer size needed to hold this StartPacket.
Definition at line 31 of file StartPacket.cpp.
|
inline |
Get the destination path.
Definition at line 173 of file FilePacket.hpp.
|
inline |
Get the file size.
Definition at line 183 of file FilePacket.hpp.
|
inline |
Get the source path.
Definition at line 178 of file FilePacket.hpp.
void Fw::FilePacket::StartPacket::initialize | ( | const U32 | fileSize, |
const char *const | sourcePath, | ||
const char *const | destinationPath | ||
) |
Initialize a StartPacket with sequence number 0.
fileSize | The file size |
sourcePath | The source path |
destinationPath | The destination path |
Definition at line 18 of file StartPacket.cpp.
SerializeStatus Fw::FilePacket::StartPacket::toBuffer | ( | Buffer & | buffer | ) | const |
Convert this StartPacket to a Buffer.
Definition at line 41 of file StartPacket.cpp.
|
friend |
Definition at line 141 of file FilePacket.hpp.