F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Tlm/TlmBuffer.hpp>
Public Types | |
enum | { SERIALIZED_TYPE_ID = FW_TYPEID_TLM_BUFF , SERIALIZED_SIZE = FW_TLM_BUFFER_MAX_SIZE + sizeof(FwBuffSizeType) } |
Public Member Functions | |
TlmBuffer (const U8 *args, NATIVE_UINT_TYPE size) | |
TlmBuffer () | |
TlmBuffer (const TlmBuffer &other) | |
virtual | ~TlmBuffer () |
TlmBuffer & | operator= (const TlmBuffer &other) |
NATIVE_UINT_TYPE | getBuffCapacity () const |
returns capacity, not current size, of buffer | |
U8 * | getBuffAddr () |
gets buffer address for data filling | |
const U8 * | getBuffAddr () const |
gets buffer address for data reading, const version | |
Public Member Functions inherited from Fw::SerializeBufferBase | |
SerializeBufferBase & | operator= (const SerializeBufferBase &src) |
equal operator | |
virtual | ~SerializeBufferBase () |
destructor | |
SerializeStatus | serialize (U8 val) |
serialize 8-bit unsigned int | |
SerializeStatus | serialize (I8 val) |
serialize 8-bit signed int | |
SerializeStatus | serialize (F32 val) |
serialize 32-bit floating point | |
SerializeStatus | serialize (bool val) |
serialize boolean | |
SerializeStatus | serialize (const void *val) |
serialize pointer (careful, only pointer value, not contents are serialized) | |
SerializeStatus | serialize (const U8 *buff, NATIVE_UINT_TYPE length, bool noLength=false) |
serialize data buffer | |
SerializeStatus | serialize (const SerializeBufferBase &val) |
serialize a serialized buffer | |
SerializeStatus | serialize (const Serializable &val) |
serialize an object derived from serializable base class | |
SerializeStatus | deserialize (U8 &val) |
deserialize 8-bit unsigned int | |
SerializeStatus | deserialize (I8 &val) |
deserialize 8-bit signed int | |
SerializeStatus | deserialize (F32 &val) |
deserialize 32-bit floating point | |
SerializeStatus | deserialize (bool &val) |
deserialize boolean | |
SerializeStatus | deserialize (void *&val) |
deserialize point value (careful, pointer value only, not contents) | |
SerializeStatus | deserialize (U8 *buff, NATIVE_UINT_TYPE &length, bool noLength=false) |
deserialize data buffer | |
SerializeStatus | deserialize (Serializable &val) |
deserialize an object derived from serializable base class | |
SerializeStatus | deserialize (SerializeBufferBase &val) |
serialize a serialized buffer | |
void | resetSer () |
reset to beginning of buffer to reuse for serialization | |
void | resetDeser () |
reset deserialization to beginning | |
SerializeStatus | deserializeSkip (NATIVE_UINT_TYPE numBytesToSkip) |
Skips the number of specified bytes for deserialization. | |
virtual NATIVE_UINT_TYPE | getBuffCapacity () const =0 |
returns capacity, not current size, of buffer | |
NATIVE_UINT_TYPE | getBuffLength () const |
returns current buffer size | |
NATIVE_UINT_TYPE | getBuffLeft () const |
returns how much deserialization buffer is left | |
virtual U8 * | getBuffAddr ()=0 |
gets buffer address for data filling | |
virtual const U8 * | getBuffAddr () const =0 |
gets buffer address for data reading, const version | |
const U8 * | getBuffAddrLeft () const |
gets address of remaining non-deserialized data. | |
U8 * | getBuffAddrSer () |
gets address of end of serialization. DANGEROUS! Need to know max buffer size and adjust when done | |
SerializeStatus | setBuff (const U8 *src, NATIVE_UINT_TYPE length) |
sets buffer contents and size | |
SerializeStatus | setBuffLen (NATIVE_UINT_TYPE length) |
sets buffer length manually after filling with data | |
SerializeStatus | copyRaw (SerializeBufferBase &dest, NATIVE_UINT_TYPE size) |
directly copies buffer without looking for a size in the stream. | |
SerializeStatus | copyRawOffset (SerializeBufferBase &dest, NATIVE_UINT_TYPE size) |
directly copies buffer without looking for a size in the stream. | |
Additional Inherited Members | |
Protected Member Functions inherited from Fw::SerializeBufferBase | |
SerializeBufferBase () | |
default constructor | |
Definition at line 20 of file TlmBuffer.hpp.
anonymous enum |
Enumerator | |
---|---|
SERIALIZED_TYPE_ID | |
SERIALIZED_SIZE |
Definition at line 23 of file TlmBuffer.hpp.
Fw::TlmBuffer::TlmBuffer | ( | const U8 * | args, |
NATIVE_UINT_TYPE | size | ||
) |
Definition at line 6 of file TlmBuffer.cpp.
Fw::TlmBuffer::TlmBuffer | ( | ) |
Definition at line 11 of file TlmBuffer.cpp.
Fw::TlmBuffer::TlmBuffer | ( | const TlmBuffer & | other | ) |
Definition at line 17 of file TlmBuffer.cpp.
|
virtual |
Definition at line 14 of file TlmBuffer.cpp.
|
virtual |
gets buffer address for data filling
Implements Fw::SerializeBufferBase.
Definition at line 40 of file TlmBuffer.cpp.
|
virtual |
gets buffer address for data reading, const version
Implements Fw::SerializeBufferBase.
Definition at line 36 of file TlmBuffer.cpp.
|
virtual |
returns capacity, not current size, of buffer
Implements Fw::SerializeBufferBase.
Definition at line 32 of file TlmBuffer.cpp.
Definition at line 22 of file TlmBuffer.cpp.