F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
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 
8 namespace Fw {
9 
10  class TextLogString : public Fw::StringBase {
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);
21  TextLogString();
22  TextLogString& operator=(const TextLogString& other);
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:299
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
@ FW_TYPEID_LOG_STR
Log string type id.
Definition: SerIds.hpp:50