F´ Flight Software - C/C++ Documentation
NASA-v2.1.0
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
Functions
f
i
m
p
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
f
m
p
r
s
t
Macros
_
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
TextLogString.cpp
Go to the documentation of this file.
1
#include <
Fw/Log/TextLogString.hpp
>
2
#include <
Fw/Types/StringUtils.hpp
>
3
namespace
Fw
{
4
5
TextLogString::TextLogString
(
const
char
* src) :
StringBase
() {
6
Fw::StringUtils::string_copy
(this->m_buf, src,
sizeof
(this->m_buf));
7
}
8
9
TextLogString::TextLogString
(
const
StringBase
& src):
StringBase
() {
10
Fw::StringUtils::string_copy
(this->m_buf, src.
toChar
(),
sizeof
(this->m_buf));
11
}
12
13
TextLogString::TextLogString
(
const
TextLogString
& src):
StringBase
() {
14
Fw::StringUtils::string_copy
(this->m_buf, src.
toChar
(),
sizeof
(this->m_buf));
15
}
16
17
TextLogString::TextLogString
(
void
):
StringBase
() {
18
this->m_buf[0] = 0;
19
}
20
21
TextLogString
&
TextLogString::operator=
(
const
TextLogString
& other) {
22
Fw::StringUtils::string_copy
(this->m_buf, other.
toChar
(),
sizeof
(this->m_buf));
23
return
*
this
;
24
}
25
26
TextLogString
&
TextLogString::operator=
(
const
StringBase
& other) {
27
Fw::StringUtils::string_copy
(this->m_buf, other.
toChar
(),
sizeof
(this->m_buf));
28
return
*
this
;
29
}
30
31
TextLogString
&
TextLogString::operator=
(
const
char
* other) {
32
Fw::StringUtils::string_copy
(this->m_buf, other,
sizeof
(this->m_buf));
33
return
*
this
;
34
}
35
36
TextLogString::~TextLogString
(
void
) {
37
}
38
39
const
char
*
TextLogString::toChar
(
void
)
const
{
40
return
this->m_buf;
41
}
42
43
NATIVE_UINT_TYPE
TextLogString::getCapacity
(
void
)
const
{
44
return
FW_LOG_TEXT_BUFFER_SIZE
;
45
}
46
}
Fw::TextLogString
Definition:
TextLogString.hpp:11
Fw::StringBase
Definition:
StringType.hpp:23
TextLogString.hpp
StringUtils.hpp
Fw::StringUtils::string_copy
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed
Definition:
StringUtils.cpp:5
Fw::StringBase::toChar
virtual const char * toChar(void) const =0
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition:
BasicTypes.hpp:30
Fw::TextLogString::toChar
const char * toChar(void) const
Definition:
TextLogString.cpp:39
Fw::TextLogString::TextLogString
TextLogString(void)
Definition:
TextLogString.cpp:17
Fw::TextLogString::getCapacity
NATIVE_UINT_TYPE getCapacity(void) const
return size of buffer
Definition:
TextLogString.cpp:43
Fw::TextLogString::operator=
TextLogString & operator=(const TextLogString &other)
Definition:
TextLogString.cpp:21
Fw::TextLogString::~TextLogString
~TextLogString(void)
Definition:
TextLogString.cpp:36
Fw
Definition:
Buffer.cpp:21
FW_LOG_TEXT_BUFFER_SIZE
#define FW_LOG_TEXT_BUFFER_SIZE
Max size of string for text log message.
Definition:
FpConfig.hpp:295
Fw
Log
TextLogString.cpp
Generated by
1.8.17