F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
StatementArgBuffer.hpp
Go to the documentation of this file.
1
#ifndef FW_STATEMENT_BUFFER_HPP
2
#define FW_STATEMENT_BUFFER_HPP
3
4
#include <
Fw/FPrimeBasicTypes.hpp
>
5
#include <
Fw/Types/Serializable.hpp
>
6
7
namespace
Fw
{
8
9
class
StatementArgBuffer
:
public
LinearBufferBase
{
10
public
:
11
enum
{
SERIALIZED_SIZE
=
STATIC_SERIALIZED_SIZE
(
FW_STATEMENT_ARG_BUFFER_MAX_SIZE
) };
12
13
StatementArgBuffer
(
const
U8
* args,
FwSizeType
size);
14
StatementArgBuffer
();
15
StatementArgBuffer
(
const
StatementArgBuffer
& other);
16
virtual
~StatementArgBuffer
();
17
StatementArgBuffer
&
operator=
(
const
StatementArgBuffer
& other);
18
19
DEPRECATED
(
Serializable::SizeType
getBuffCapacity()
const
,
"Use getCapacity() instead"
);
20
21
bool
operator==
(
const
StatementArgBuffer
& other)
const
;
22
23
#if FW_SERIALIZABLE_TO_STRING
24
void
toString(
Fw::StringBase
& text)
const
;
25
#endif
26
private
:
27
U8
m_bufferData[
FW_STATEMENT_ARG_BUFFER_MAX_SIZE
];
// command argument buffer
28
};
29
30
}
// namespace Fw
31
32
#endif
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
Fw::StatementArgBuffer::operator=
StatementArgBuffer & operator=(const StatementArgBuffer &other)
Definition:
StatementArgBuffer.cpp:25
Fw::StatementArgBuffer::SERIALIZED_SIZE
Definition:
StatementArgBuffer.hpp:11
FPrimeBasicTypes.hpp
Fw::StatementArgBuffer::~StatementArgBuffer
virtual ~StatementArgBuffer()
Definition:
StatementArgBuffer.cpp:15
Fw::StatementArgBuffer::DEPRECATED
DEPRECATED(Serializable::SizeType getBuffCapacity() const, "Use getCapacity() instead")
Fw::StatementArgBuffer
Definition:
StatementArgBuffer.hpp:9
Fw::LinearBufferBase::STATIC_SERIALIZED_SIZE
static constexpr Serializable::SizeType STATIC_SERIALIZED_SIZE(Serializable::SizeType maxSize)
Get the static serialized size of a buffer This is the max size of the buffer data plus the size of t...
Definition:
Serializable.hpp:684
FW_STATEMENT_ARG_BUFFER_MAX_SIZE
Definition:
FppConstantsAc.hpp:362
Fw::Serializable::SizeType
FwSizeType SizeType
Definition:
Serializable.hpp:45
Fw::StatementArgBuffer::operator==
bool operator==(const StatementArgBuffer &other) const
Definition:
StatementArgBuffer.cpp:39
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.h:54
Fw::LinearBufferBase
Definition:
Serializable.hpp:667
Fw::StatementArgBuffer::StatementArgBuffer
StatementArgBuffer()
Definition:
StatementArgBuffer.cpp:13
Fw
Implementation of malloc based allocator.
Definition:
MemoryAllocation.hpp:14
Fw::StringBase
Definition:
StringBase.hpp:27
Serializable.hpp
Fw
Fpy
StatementArgBuffer.hpp
Generated by
1.8.14