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  DEPRECATED(Serializable::SizeType getBuffCapacity() const, "Use getCapacity() instead");
24  Serializable::SizeType getCapacity() const; // !< returns capacity, not current size, of buffer
25 
26  U8* getBuffAddr();
27  const U8* getBuffAddr() const;
28  bool operator==(const StatementArgBuffer& other) const;
29 
30 #if FW_SERIALIZABLE_TO_STRING
31  void toString(Fw::StringBase& text) const;
32 #endif
33  private:
34  U8 m_bufferData[FW_STATEMENT_ARG_BUFFER_MAX_SIZE]; // command argument buffer
35 };
36 
37 } // namespace Fw
38 
39 #endif
PlatformSizeType FwSizeType
StatementArgBuffer & operator=(const StatementArgBuffer &other)
U8 * getBuffAddr()
Get buffer address for data filling (non-const version)
DEPRECATED(Serializable::SizeType getBuffCapacity() const, "Use getCapacity() instead")
FwSizeStoreType FwBuffSizeType
Definitions for ISF type serial IDs.
FwSizeType SizeType
Telemetry Buffer type id.
Definition: SerIds.hpp:47
Serializable::SizeType getCapacity() const
Get buffer capacity.
bool operator==(const StatementArgBuffer &other) const
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
Implementation of malloc based allocator.