F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
u
v
w
Variables
b
c
f
g
k
l
m
o
p
r
s
t
u
w
z
Typedefs
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
f
h
i
k
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
e
f
i
m
r
s
t
w
Enumerations
b
c
d
f
g
h
m
o
q
r
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
:
a
b
c
d
f
g
h
l
p
q
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
f
g
i
m
p
r
s
t
u
Variables
_
b
c
f
g
i
l
p
r
s
w
Typedefs
a
b
c
e
f
i
n
p
s
t
u
Enumerations
Enumerator
a
b
c
f
g
h
p
r
s
t
Macros
_
a
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
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
}
5
TextLogString::TextLogString
(
const
char
* src) :
StringBase
() {
…
}
8
9
TextLogString::TextLogString
(
const
StringBase
& src):
StringBase
() {
10
Fw::StringUtils::string_copy
(this->m_buf, src.
toChar
(),
sizeof
(this->m_buf));
11
}
9
TextLogString::TextLogString
(
const
StringBase
& src):
StringBase
() {
…
}
12
13
TextLogString::TextLogString
(
const
TextLogString
& src):
StringBase
() {
14
Fw::StringUtils::string_copy
(this->m_buf, src.
toChar
(),
sizeof
(this->m_buf));
15
}
13
TextLogString::TextLogString
(
const
TextLogString
& src):
StringBase
() {
…
}
16
17
TextLogString::TextLogString
():
StringBase
() {
18
this->m_buf[0] = 0;
19
}
17
TextLogString::TextLogString
():
StringBase
() {
…
}
20
21
TextLogString
&
TextLogString::operator=
(
const
TextLogString
& other) {
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
}
21
TextLogString
&
TextLogString::operator=
(
const
TextLogString
& other) {
…
}
29
30
TextLogString
&
TextLogString::operator=
(
const
StringBase
& other) {
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
}
30
TextLogString
&
TextLogString::operator=
(
const
StringBase
& other) {
…
}
38
39
TextLogString
&
TextLogString::operator=
(
const
char
* other) {
40
Fw::StringUtils::string_copy
(this->m_buf, other,
sizeof
(this->m_buf));
41
return
*
this
;
42
}
39
TextLogString
&
TextLogString::operator=
(
const
char
* other) {
…
}
43
44
TextLogString::~TextLogString
() {
45
}
44
TextLogString::~TextLogString
() {
…
}
46
47
const
char
*
TextLogString::toChar
()
const
{
48
return
this->m_buf;
49
}
47
const
char
*
TextLogString::toChar
()
const
{
…
}
50
51
NATIVE_UINT_TYPE
TextLogString::getCapacity
()
const
{
52
return
FW_LOG_TEXT_BUFFER_SIZE
;
53
}
51
NATIVE_UINT_TYPE
TextLogString::getCapacity
()
const
{
…
}
54
}
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
StringUtils.hpp
TextLogString.hpp
Fw::StringBase
Definition
StringType.hpp:23
Fw::StringBase::toChar
virtual const CHAR * toChar() const =0
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::StringUtils::string_copy
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed
Definition
StringUtils.cpp:5
Fw
Definition
BufferGetPortAc.cpp:11
Fw
Log
TextLogString.cpp
Generated by
1.10.0