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 <FpConfig.hpp>
6 #include <Fw/Cfg/SerIds.hpp>
7 
8 namespace Fw {
9 
11  public:
12 
13  enum {
16  };
17 
18  StatementArgBuffer(const U8 *args, FwSizeType size);
21  virtual ~StatementArgBuffer();
23 
24  Serializable::SizeType getBuffCapacity() const; // !< returns capacity, not current size, of buffer
25  U8* getBuffAddr();
26  const U8* getBuffAddr() const;
27  bool operator==(const StatementArgBuffer& other) const;
28 
29  #if FW_SERIALIZABLE_TO_STRING
30  void toString(Fw::StringBase& text) const;
31  #endif
32  PRIVATE:
33  U8 m_bufferData[FW_STATEMENT_ARG_BUFFER_MAX_SIZE]; // command argument buffer
34  };
35 
36 }
37 
38 #endif
PlatformSizeType FwSizeType
StatementArgBuffer & operator=(const StatementArgBuffer &other)
#define FW_STATEMENT_ARG_BUFFER_MAX_SIZE
Definition: FpConfig.h:234
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
Telemetry Buffer type id.
Definition: SerIds.hpp:47
FwSizeType SizeType
bool operator==(const StatementArgBuffer &other) const
C++-compatible configuration header for fprime configuration.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:56