F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
TextLogString.hpp
Go to the documentation of this file.
1#ifndef FW_TEXT_LOG_STRING_TYPE_HPP
2#define FW_TEXT_LOG_STRING_TYPE_HPP
3
4#include <FpConfig.hpp>
6#include <Fw/Cfg/SerIds.hpp>
7
8namespace Fw {
9
11 public:
12
13 enum {
15 SERIALIZED_SIZE = FW_LOG_TEXT_BUFFER_SIZE + sizeof(FwBuffSizeType) // size of buffer + storage of two size words
16 };
17
18 TextLogString(const char* src);
19 TextLogString(const StringBase& src);
20 TextLogString(const TextLogString& src);
23 TextLogString& operator=(const StringBase& other);
24 TextLogString& operator=(const char* other);
26
27 const char* toChar() const;
29
30 private:
31
32 char m_buf[FW_LOG_TEXT_BUFFER_SIZE];
33 };
34
35}
36
37#endif
PlatformUIntType NATIVE_UINT_TYPE
Definition BasicTypes.h:52
#define FW_LOG_TEXT_BUFFER_SIZE
Max size of string for text log message.
Definition FpConfig.h:291
U16 FwBuffSizeType
Definition FpConfig.h:30
C++-compatible configuration header for fprime configuration.
Definitions for ISF type serial IDs.
Declares ISF string base class.
NATIVE_UINT_TYPE getCapacity() const
return size of buffer
TextLogString & operator=(const TextLogString &other)
const char * toChar() const
Definition Buffer.cpp:21
@ FW_TYPEID_LOG_STR
Log string type id.
Definition SerIds.hpp:50