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
EightyCharString.cpp
Go to the documentation of this file.
1
#include <
Fw/Types/EightyCharString.hpp
>
2
#include <
Fw/Types/StringUtils.hpp
>
3
4
namespace
Fw
{
5
6
EightyCharString::EightyCharString
(
const
char
* src) :
StringBase
() {
7
Fw::StringUtils::string_copy
(this->m_buf, src,
sizeof
(this->m_buf));
8
}
9
10
EightyCharString::EightyCharString
(
const
StringBase
& src) :
StringBase
() {
11
Fw::StringUtils::string_copy
(this->m_buf, src.
toChar
(),
sizeof
(this->m_buf));
12
}
13
14
EightyCharString::EightyCharString
(
const
EightyCharString
& src) :
StringBase
() {
15
Fw::StringUtils::string_copy
(this->m_buf, src.
toChar
(),
sizeof
(this->m_buf));
16
}
17
18
EightyCharString::EightyCharString
(
void
) :
StringBase
() {
19
this->m_buf[0] = 0;
20
}
21
22
EightyCharString
&
EightyCharString::operator=
(
const
EightyCharString
& other) {
23
Fw::StringUtils::string_copy
(this->m_buf, other.
toChar
(),
sizeof
(this->m_buf));
24
return
*
this
;
25
}
26
27
EightyCharString
&
EightyCharString::operator=
(
const
StringBase
& other) {
28
Fw::StringUtils::string_copy
(this->m_buf, other.
toChar
(),
sizeof
(this->m_buf));
29
return
*
this
;
30
}
31
32
EightyCharString
&
EightyCharString::operator=
(
const
char
* other) {
33
Fw::StringUtils::string_copy
(this->m_buf, other,
sizeof
(this->m_buf));
34
return
*
this
;
35
}
36
37
EightyCharString::~EightyCharString
(
void
) {
38
}
39
40
const
char
*
EightyCharString::toChar
(
void
)
const
{
41
return
this->m_buf;
42
}
43
44
NATIVE_UINT_TYPE
EightyCharString::getCapacity
(
void
)
const
{
45
return
STRING_SIZE
;
46
}
47
}
Fw::EightyCharString::toChar
const char * toChar(void) const
gets char buffer
Definition:
EightyCharString.cpp:40
Fw::StringBase
Definition:
StringType.hpp:23
Fw::EightyCharString::STRING_SIZE
@ STRING_SIZE
Storage for string.
Definition:
EightyCharString.hpp:15
Fw::EightyCharString
Definition:
EightyCharString.hpp:10
StringUtils.hpp
EightyCharString.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::EightyCharString::getCapacity
NATIVE_UINT_TYPE getCapacity(void) const
return buffer size
Definition:
EightyCharString.cpp:44
Fw::EightyCharString::EightyCharString
EightyCharString(void)
default constructor
Definition:
EightyCharString.cpp:18
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::EightyCharString::~EightyCharString
~EightyCharString(void)
destructor
Definition:
EightyCharString.cpp:37
Fw
Definition:
Buffer.cpp:21
Fw::EightyCharString::operator=
EightyCharString & operator=(const EightyCharString &other)
assignment operator
Definition:
EightyCharString.cpp:22
Fw
Types
EightyCharString.cpp
Generated by
1.8.17