F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TextLogString.cpp
Go to the documentation of this file.
3namespace Fw {
4
6 Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf));
7 }
8
10 Fw::StringUtils::string_copy(this->m_buf, src.toChar(), sizeof(this->m_buf));
11 }
12
14 Fw::StringUtils::string_copy(this->m_buf, src.toChar(), sizeof(this->m_buf));
15 }
16
18 this->m_buf[0] = 0;
19 }
20
22 if(this == &other) {
23 return *this;
24 }
25
26 Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf));
27 return *this;
28 }
29
31 if(this == &other) {
32 return *this;
33 }
34
35 Fw::StringUtils::string_copy(this->m_buf, other.toChar(), sizeof(this->m_buf));
36 return *this;
37 }
38
40 Fw::StringUtils::string_copy(this->m_buf, other, sizeof(this->m_buf));
41 return *this;
42 }
43
46
47 const char* TextLogString::toChar() const {
48 return this->m_buf;
49 }
50
54}
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
virtual const CHAR * toChar() const =0
NATIVE_UINT_TYPE getCapacity() const
return size of buffer
TextLogString & operator=(const TextLogString &other)
const char * toChar() const
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed