F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
LogBuffer.hpp
Go to the documentation of this file.
1 /*
2  * LogBuffer.hpp
3  *
4  * Created on: Sep 10, 2012
5  * Author: ppandian
6  */
7 
8 /*
9  * Description:
10  * This object contains the LogBuffer type, used for storing log entries
11  */
12 #ifndef FW_LOG_BUFFER_HPP
13 #define FW_LOG_BUFFER_HPP
14 
15 #include <Fw/FPrimeBasicTypes.hpp>
16 #include <Fw/Types/SerIds.hpp>
18 
19 namespace Fw {
20 
21 class LogBuffer final : public SerializeBufferBase {
22  public:
24 
25  LogBuffer(const U8* args, FwSizeType size);
26  LogBuffer();
27  LogBuffer(const LogBuffer& other);
28  virtual ~LogBuffer();
29  LogBuffer& operator=(const LogBuffer& other);
30 
31  FwSizeType getBuffCapacity() const; // !< returns capacity, not current size, of buffer
32  U8* getBuffAddr();
33  const U8* getBuffAddr() const;
34 
35  private:
36  U8 m_bufferData[FW_LOG_BUFFER_MAX_SIZE]; // command argument buffer
37 };
38 
39 } // namespace Fw
40 
41 #endif
U8 * getBuffAddr()
gets buffer address for data filling
Definition: LogBuffer.cpp:38
PlatformSizeType FwSizeType
virtual ~LogBuffer()
Definition: LogBuffer.cpp:13
FwSizeStoreType FwBuffSizeType
Definitions for ISF type serial IDs.
#define FW_LOG_BUFFER_MAX_SIZE
Definition: FpConfig.h:201
LogBuffer & operator=(const LogBuffer &other)
Definition: LogBuffer.cpp:20
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
FwSizeType getBuffCapacity() const
returns capacity, not current size, of buffer
Definition: LogBuffer.cpp:30
Log Buffer type id.
Definition: SerIds.hpp:49