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
►
F´ Flight Software - C/C++ Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
CmdString.cpp
Go to the documentation of this file.
1
#include <
Fw/Cmd/CmdString.hpp
>
2
#include <
Fw/Types/StringUtils.hpp
>
3
4
namespace
Fw
{
5
6
CmdStringArg::CmdStringArg
(
const
char
* src) :
StringBase
() {
7
Fw::StringUtils::string_copy
(this->m_buf, src,
sizeof
(this->m_buf));
8
}
6
CmdStringArg::CmdStringArg
(
const
char
* src) :
StringBase
() {
…
}
9
10
CmdStringArg::CmdStringArg
(
const
StringBase
& src) :
StringBase
() {
11
Fw::StringUtils::string_copy
(this->m_buf, src.
toChar
(),
sizeof
(this->m_buf));
12
}
10
CmdStringArg::CmdStringArg
(
const
StringBase
& src) :
StringBase
() {
…
}
13
14
CmdStringArg::CmdStringArg
(
const
CmdStringArg
& src) :
StringBase
() {
15
Fw::StringUtils::string_copy
(this->m_buf, src.
toChar
(),
sizeof
(this->m_buf));
16
}
14
CmdStringArg::CmdStringArg
(
const
CmdStringArg
& src) :
StringBase
() {
…
}
17
18
CmdStringArg::CmdStringArg
() :
StringBase
() {
19
this->m_buf[0] = 0;
20
}
18
CmdStringArg::CmdStringArg
() :
StringBase
() {
…
}
21
22
CmdStringArg
&
CmdStringArg::operator=
(
const
CmdStringArg
& other) {
23
if
(
this
== &other) {
24
return
*
this
;
25
}
26
27
Fw::StringUtils::string_copy
(this->m_buf, other.
toChar
(),
sizeof
(this->m_buf));
28
return
*
this
;
29
}
22
CmdStringArg
&
CmdStringArg::operator=
(
const
CmdStringArg
& other) {
…
}
30
31
CmdStringArg
&
CmdStringArg::operator=
(
const
StringBase
& other) {
32
if
(
this
== &other) {
33
return
*
this
;
34
}
35
36
Fw::StringUtils::string_copy
(this->m_buf, other.
toChar
(),
sizeof
(this->m_buf));
37
return
*
this
;
38
}
31
CmdStringArg
&
CmdStringArg::operator=
(
const
StringBase
& other) {
…
}
39
40
CmdStringArg
&
CmdStringArg::operator=
(
const
char
* other) {
41
Fw::StringUtils::string_copy
(this->m_buf, other,
sizeof
(this->m_buf));
42
return
*
this
;
43
}
40
CmdStringArg
&
CmdStringArg::operator=
(
const
char
* other) {
…
}
44
45
CmdStringArg::~CmdStringArg
() {
46
}
45
CmdStringArg::~CmdStringArg
() {
…
}
47
48
const
char
*
CmdStringArg::toChar
()
const
{
49
return
this->m_buf;
50
}
48
const
char
*
CmdStringArg::toChar
()
const
{
…
}
51
52
NATIVE_UINT_TYPE
CmdStringArg::getCapacity
()
const
{
53
return
FW_CMD_STRING_MAX_SIZE
;
54
}
52
NATIVE_UINT_TYPE
CmdStringArg::getCapacity
()
const
{
…
}
55
}
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
CmdString.hpp
FW_CMD_STRING_MAX_SIZE
#define FW_CMD_STRING_MAX_SIZE
Max character size of command string arguments.
Definition
FpConfig.h:231
StringUtils.hpp
Fw::CmdStringArg
Definition
CmdString.hpp:10
Fw::CmdStringArg::operator=
CmdStringArg & operator=(const CmdStringArg &other)
Definition
CmdString.cpp:22
Fw::CmdStringArg::getCapacity
NATIVE_UINT_TYPE getCapacity() const
return buffer size
Definition
CmdString.cpp:52
Fw::CmdStringArg::~CmdStringArg
~CmdStringArg()
Definition
CmdString.cpp:45
Fw::CmdStringArg::toChar
const char * toChar() const
Definition
CmdString.cpp:48
Fw::CmdStringArg::CmdStringArg
CmdStringArg()
Definition
CmdString.cpp:18
Fw::StringBase
Definition
StringType.hpp:23
Fw::StringBase::toChar
virtual const CHAR * toChar() const =0
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
Cmd
CmdString.cpp
Generated by
1.10.0