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
>
5
#include <
Fw/Types/StringType.hpp
>
6
#include <
Fw/Cfg/SerIds.hpp
>
7
8
namespace
Fw
{
9
10
class
TextLogString
:
public
Fw::StringBase
{
11
public
:
12
13
enum
{
14
SERIALIZED_TYPE_ID
=
FW_TYPEID_LOG_STR
,
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);
25
~TextLogString
();
26
27
const
char
*
toChar
()
const
;
28
NATIVE_UINT_TYPE
getCapacity
()
const
;
29
30
private
:
31
32
char
m_buf[
FW_LOG_TEXT_BUFFER_SIZE
];
33
};
34
35
}
36
37
#endif
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
FW_LOG_TEXT_BUFFER_SIZE
#define FW_LOG_TEXT_BUFFER_SIZE
Max size of string for text log message.
Definition
FpConfig.h:291
FwBuffSizeType
U16 FwBuffSizeType
Definition
FpConfig.h:30
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
SerIds.hpp
Definitions for ISF type serial IDs.
StringType.hpp
Declares ISF string base class.
Fw::StringBase
Definition
StringType.hpp:23
Fw::TextLogString
Definition
TextLogString.hpp:10
Fw::TextLogString::getCapacity
NATIVE_UINT_TYPE getCapacity() const
return size of buffer
Definition
TextLogString.cpp:51
Fw::TextLogString::~TextLogString
~TextLogString()
Definition
TextLogString.cpp:44
Fw::TextLogString::operator=
TextLogString & operator=(const TextLogString &other)
Definition
TextLogString.cpp:21
Fw::TextLogString::toChar
const char * toChar() const
Definition
TextLogString.cpp:47
Fw::TextLogString::TextLogString
TextLogString()
Definition
TextLogString.cpp:17
Fw::TextLogString::SERIALIZED_TYPE_ID
@ SERIALIZED_TYPE_ID
Definition
TextLogString.hpp:14
Fw::TextLogString::SERIALIZED_SIZE
@ SERIALIZED_SIZE
Definition
TextLogString.hpp:15
Fw
Definition
Buffer.cpp:21
Fw::FW_TYPEID_LOG_STR
@ FW_TYPEID_LOG_STR
Log string type id.
Definition
SerIds.hpp:50
Fw
Log
TextLogString.hpp
Generated by
1.9.7