F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
A file packet. More...
#include <Fw/FilePacket/FilePacket.hpp>
Classes | |
class | CancelPacket |
The type of a cancel packet. More... | |
class | DataPacket |
The type of a data packet. More... | |
class | EndPacket |
The type of an end packet. More... | |
class | Header |
The type of a packet header. More... | |
class | PathName |
The type of a path name. More... | |
struct | StartPacket |
The type of a start packet. More... | |
Public Types | |
enum | Type { T_START = 0, T_DATA = 1, T_END = 2, T_CANCEL = 3, T_NONE = 255 } |
Packet type. More... | |
Public Member Functions | |
FilePacket (void) | |
SerializeStatus | fromBuffer (const Buffer &buffer) |
const Header & | asHeader (void) const |
const StartPacket & | asStartPacket (void) const |
const DataPacket & | asDataPacket (void) const |
const EndPacket & | asEndPacket (void) const |
const CancelPacket & | asCancelPacket (void) const |
void | fromStartPacket (const StartPacket &startPacket) |
void | fromDataPacket (const DataPacket &dataPacket) |
void | fromEndPacket (const EndPacket &endPacket) |
void | fromCancelPacket (const CancelPacket &cancelPacket) |
U32 | bufferSize (void) const |
SerializeStatus | toBuffer (Buffer &buffer) const |
Public Attributes | |
PRIVATE | __pad0__: SerializeStatus fromSerialBuffer(SerialBuffer& serialBuffer) |
PRIVATE | __pad1__: Header header |
StartPacket | startPacket |
DataPacket | dataPacket |
EndPacket | endPacket |
CancelPacket | cancelPacket |
A file packet.
Definition at line 27 of file FilePacket.hpp.
enum Fw::FilePacket::Type |
Packet type.
Enumerator | |
---|---|
T_START | |
T_DATA | |
T_END | |
T_CANCEL | |
T_NONE |
Definition at line 36 of file FilePacket.hpp.
|
inline |
Definition at line 294 of file FilePacket.hpp.
const FilePacket::CancelPacket & Fw::FilePacket::asCancelPacket | ( | void | ) | const |
Get this as a CancelPacket
Definition at line 61 of file FilePacket.cpp.
const FilePacket::DataPacket & Fw::FilePacket::asDataPacket | ( | void | ) | const |
Get this as a DataPacket
Definition at line 47 of file FilePacket.cpp.
const FilePacket::EndPacket & Fw::FilePacket::asEndPacket | ( | void | ) | const |
Get this as an EndPacket
Definition at line 54 of file FilePacket.cpp.
const FilePacket::Header & Fw::FilePacket::asHeader | ( | void | ) | const |
Get this as a Header
Definition at line 34 of file FilePacket.cpp.
const FilePacket::StartPacket & Fw::FilePacket::asStartPacket | ( | void | ) | const |
Get this as a StartPacket
Definition at line 40 of file FilePacket.cpp.
U32 Fw::FilePacket::bufferSize | ( | void | ) | const |
Get the buffer size needed to hold this FilePacket
Definition at line 96 of file FilePacket.cpp.
SerializeStatus Fw::FilePacket::fromBuffer | ( | const Buffer & | buffer | ) |
Initialize this from a Buffer
Definition at line 22 of file FilePacket.cpp.
void Fw::FilePacket::fromCancelPacket | ( | const CancelPacket & | cancelPacket | ) |
Initialize this with a CancelPacket
Definition at line 89 of file FilePacket.cpp.
void Fw::FilePacket::fromDataPacket | ( | const DataPacket & | dataPacket | ) |
Initialize this with a DataPacket
Definition at line 75 of file FilePacket.cpp.
void Fw::FilePacket::fromEndPacket | ( | const EndPacket & | endPacket | ) |
Initialize this with an EndPacket
Definition at line 82 of file FilePacket.cpp.
void Fw::FilePacket::fromStartPacket | ( | const StartPacket & | startPacket | ) |
Initialize this with a StartPacket
Definition at line 68 of file FilePacket.cpp.
SerializeStatus Fw::FilePacket::toBuffer | ( | Buffer & | buffer | ) | const |
Convert this FilePacket to a Buffer
Definition at line 116 of file FilePacket.cpp.
PRIVATE Fw::FilePacket::__pad0__ |
Definition at line 350 of file FilePacket.hpp.
PRIVATE Fw::FilePacket::__pad1__ |
Definition at line 360 of file FilePacket.hpp.
CancelPacket Fw::FilePacket::cancelPacket |
this, seen as a Cancel packet
Definition at line 384 of file FilePacket.hpp.
DataPacket Fw::FilePacket::dataPacket |
this, seen as a Data packet
Definition at line 376 of file FilePacket.hpp.
EndPacket Fw::FilePacket::endPacket |
this, seen as an End packet
Definition at line 380 of file FilePacket.hpp.
StartPacket Fw::FilePacket::startPacket |
this, seen as a Start packet
Definition at line 372 of file FilePacket.hpp.