F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
LogBuffer.cpp
Go to the documentation of this file.
1 #include <Fw/Log/LogBuffer.hpp>
2 #include <Fw/Types/Assert.hpp>
3 
4 namespace Fw {
5 
6 LogBuffer::LogBuffer(const U8* args, FwSizeType size) {
8  FW_ASSERT(FW_SERIALIZE_OK == stat, static_cast<FwAssertArgType>(stat));
9 }
10 
12 
14 
16  SerializeStatus stat = SerializeBufferBase::setBuff(other.m_bufferData, other.getBuffLength());
17  FW_ASSERT(FW_SERIALIZE_OK == stat, static_cast<FwAssertArgType>(stat));
18 }
19 
21  if (this == &other) {
22  return *this;
23  }
24 
25  SerializeStatus stat = SerializeBufferBase::setBuff(other.m_bufferData, other.getBuffLength());
26  FW_ASSERT(FW_SERIALIZE_OK == stat, static_cast<FwAssertArgType>(stat));
27  return *this;
28 }
29 
31  return sizeof(this->m_bufferData);
32 }
33 
34 const U8* LogBuffer::getBuffAddr() const {
35  return this->m_bufferData;
36 }
37 
39  return this->m_bufferData;
40 }
41 
42 } // namespace Fw
Serialization/Deserialization operation was successful.
U8 * getBuffAddr()
gets buffer address for data filling
Definition: LogBuffer.cpp:38
PlatformSizeType FwSizeType
virtual ~LogBuffer()
Definition: LogBuffer.cpp:13
SerializeStatus
forward declaration for string
Serializable::SizeType getBuffLength() const
returns current buffer size
LogBuffer & operator=(const LogBuffer &other)
Definition: LogBuffer.cpp:20
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
SerializeStatus setBuff(const U8 *src, Serializable::SizeType length)
sets buffer contents and size
FwSizeType getBuffCapacity() const
returns capacity, not current size, of buffer
Definition: LogBuffer.cpp:30
#define FW_ASSERT(...)
Definition: Assert.hpp:14