F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DataBuffer.hpp
Go to the documentation of this file.
1 #ifndef _DrvDataBuffer_hpp_
2 #define _DrvDataBuffer_hpp_
3 
4 #include <FpConfig.hpp>
6 
7 namespace Drv {
8 
10  public:
11 
12  enum {
16  };
17 
18  DataBuffer(const U8 *args, NATIVE_UINT_TYPE size);
19  DataBuffer();
20  DataBuffer(const DataBuffer& other);
21  virtual ~DataBuffer();
22  DataBuffer& operator=(const DataBuffer& other);
23 
24  NATIVE_UINT_TYPE getBuffCapacity() const; // !< returns capacity, not current size, of buffer
25  U8* getBuffAddr();
26  const U8* getBuffAddr() const;
27 
28  private:
29  U8 m_data[DATA_BUFFER_SIZE]; // packet data buffer
30  };
31 }
32 
33 #endif
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:30
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:56
FwSizeStoreType FwBuffSizeType
Definition: FpConfig.h:452
C++-compatible configuration header for fprime configuration.
DataBuffer & operator=(const DataBuffer &other)
Definition: DataBuffer.cpp:22
virtual ~DataBuffer()
Definition: DataBuffer.cpp:14
NATIVE_UINT_TYPE getBuffCapacity() const
returns capacity, not current size, of buffer
Definition: DataBuffer.cpp:32
U8 * getBuffAddr()
gets buffer address for data filling
Definition: DataBuffer.cpp:40