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 
5 #include <Fw/Types/SerIds.hpp>
7 
8 namespace Fw {
9 
11  public:
12  enum {
15  };
16 
17  StatementArgBuffer(const U8* args, FwSizeType size);
20  virtual ~StatementArgBuffer();
22 
23  Serializable::SizeType getBuffCapacity() const; // !< returns capacity, not current size, of buffer
24  U8* getBuffAddr();
25  const U8* getBuffAddr() const;
26  bool operator==(const StatementArgBuffer& other) const;
27 
28 #if FW_SERIALIZABLE_TO_STRING
29  void toString(Fw::StringBase& text) const;
30 #endif
31  private:
32  U8 m_bufferData[FW_STATEMENT_ARG_BUFFER_MAX_SIZE]; // command argument buffer
33 };
34 
35 } // namespace Fw
36 
37 #endif
PlatformSizeType FwSizeType
Telemetry Buffer type id.
Definition: SerIds.hpp:47
StatementArgBuffer & operator=(const StatementArgBuffer &other)
U8 * getBuffAddr()
gets buffer address for data filling
FwSizeStoreType FwBuffSizeType
Definitions for ISF type serial IDs.
Serializable::SizeType getBuffCapacity() const
returns capacity, not current size, of buffer
FwSizeType SizeType
bool operator==(const StatementArgBuffer &other) const
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
#define FW_STATEMENT_ARG_BUFFER_MAX_SIZE
Definition: FpConfig.h:217