F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
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
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
b
d
e
f
g
h
i
l
m
n
p
q
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
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
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
LogBuffer.cpp
Go to the documentation of this file.
1
#include <
Fw/Log/LogBuffer.hpp
>
2
#include <
Fw/Types/Assert.hpp
>
3
4
namespace
Fw
{
5
6
LogBuffer::LogBuffer
(
const
U8
*args,
NATIVE_UINT_TYPE
size) {
7
SerializeStatus
stat =
SerializeBufferBase::setBuff
(args,size);
8
FW_ASSERT
(
FW_SERIALIZE_OK
== stat,
static_cast<
NATIVE_UINT_TYPE
>
(stat));
9
}
10
11
LogBuffer::LogBuffer
() {
12
}
13
14
LogBuffer::~LogBuffer
() {
15
}
16
17
LogBuffer::LogBuffer
(
const
LogBuffer
& other) :
Fw
::
SerializeBufferBase
() {
18
SerializeStatus
stat =
SerializeBufferBase::setBuff
(other.m_data,other.
getBuffLength
());
19
FW_ASSERT
(
FW_SERIALIZE_OK
== stat,
static_cast<
NATIVE_INT_TYPE
>
(stat));
20
}
21
22
const
LogBuffer
&
LogBuffer::operator=
(
const
LogBuffer
& other) {
23
SerializeStatus
stat =
SerializeBufferBase::setBuff
(other.m_data,other.
getBuffLength
());
24
FW_ASSERT
(
FW_SERIALIZE_OK
== stat,
static_cast<
NATIVE_INT_TYPE
>
(stat));
25
return
*
this
;
26
}
27
28
NATIVE_UINT_TYPE
LogBuffer::getBuffCapacity
(
void
)
const
{
29
return
sizeof
(this->m_data);
30
}
31
32
const
U8
*
LogBuffer::getBuffAddr
(
void
)
const
{
33
return
this->m_data;
34
}
35
36
U8
*
LogBuffer::getBuffAddr
(
void
) {
37
return
this->m_data;
38
}
39
40
}
41
LogBuffer.hpp
Fw::LogBuffer::LogBuffer
LogBuffer()
Definition:
LogBuffer.cpp:11
Fw::SerializeBufferBase
Definition:
Serializable.hpp:43
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.hpp:76
Fw::LogBuffer
Definition:
LogBuffer.hpp:22
Assert.hpp
Fw::FW_SERIALIZE_OK
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
Definition:
Serializable.hpp:15
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition:
BasicTypes.hpp:30
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
Fw::SerializeBufferBase::getBuffLength
NATIVE_UINT_TYPE getBuffLength() const
returns current buffer size
Definition:
Serializable.cpp:587
Fw::SerializeBufferBase::setBuff
SerializeStatus setBuff(const U8 *src, NATIVE_UINT_TYPE length)
sets buffer contents and size
Definition:
Serializable.cpp:591
Fw::LogBuffer::~LogBuffer
virtual ~LogBuffer()
Definition:
LogBuffer.cpp:14
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Fw::LogBuffer::getBuffCapacity
NATIVE_UINT_TYPE getBuffCapacity(void) const
returns capacity, not current size, of buffer
Definition:
LogBuffer.cpp:28
Fw::LogBuffer::getBuffAddr
U8 * getBuffAddr(void)
gets buffer address for data filling
Definition:
LogBuffer.cpp:36
Fw::LogBuffer::operator=
const LogBuffer & operator=(const LogBuffer &other)
Definition:
LogBuffer.cpp:22
Fw
Definition:
Buffer.cpp:21
Fw
Log
LogBuffer.cpp
Generated by
1.8.17