F´ Flight Software - C/C++ Documentation
NASA-v1.5.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
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
c
f
h
i
l
m
n
o
p
s
t
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
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
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
t
u
w
Enumerations
b
c
d
e
f
g
h
i
m
o
p
q
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
a
b
c
f
g
h
l
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
f
i
m
s
u
Variables
_
c
f
i
l
p
t
Typedefs
Enumerations
Enumerator
a
c
d
f
i
m
p
r
s
t
w
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
StructSerializable.hpp
Go to the documentation of this file.
1
#ifndef STRUCT_SERIALIZABLE_HPP
2
#define STRUCT_SERIALIZABLE_HPP
3
4
#include <
Fw/Types/BasicTypes.hpp
>
5
#include <
Fw/Types/Serializable.hpp
>
6
7
namespace
Fw
{
8
9
template
<
class
T>
class
StructSerializable
:
public
Fw::Serializable
{
10
public
:
11
12
enum
{
13
SERIALIZED_SIZE
=
sizeof
(T) +
sizeof
(I32)
// struct size plus int for storing size
14
};
15
16
StructSerializable
();
17
StructSerializable
(
const
T& val);
18
StructSerializable
(
const
T* val);
19
const
T&
operator=
(
const
T& val);
20
21
virtual
~StructSerializable
();
22
23
void
set
(
const
T& val);
24
const
T&
get
(
void
);
25
26
Fw::SerializeStatus
serialize
(
Fw::SerializeBufferBase
& buffer)
const
;
27
Fw::SerializeStatus
deserialize
(
Fw::SerializeBufferBase
& buffer);
28
29
private
:
30
T m_val;
31
32
};
33
34
}
35
#endif
Fw::StructSerializable::serialize
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
serialize contents
Definition:
StructSerializable.cpp:34
Fw::StructSerializable::set
void set(const T &val)
Definition:
StructSerializable.cpp:26
Fw::SerializeBufferBase
Definition:
Serializable.hpp:43
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw::StructSerializable::~StructSerializable
virtual ~StructSerializable()
Definition:
StructSerializable.cpp:23
Serializable.hpp
Fw::StructSerializable::deserialize
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
deserialize to contents
Definition:
StructSerializable.cpp:41
Fw::StructSerializable::StructSerializable
StructSerializable()
Definition:
StructSerializable.cpp:6
Fw::Serializable
forward declaration
Definition:
Serializable.hpp:26
Fw::StructSerializable::SERIALIZED_SIZE
@ SERIALIZED_SIZE
Definition:
StructSerializable.hpp:13
Fw::StructSerializable::operator=
const T & operator=(const T &val)
Definition:
StructSerializable.cpp:18
Fw::StructSerializable
Definition:
StructSerializable.hpp:9
BasicTypes.hpp
Declares ISF basic types.
Fw
Definition:
BufferGetPortAc.cpp:6
Fw::StructSerializable::get
const T & get(void)
Definition:
StructSerializable.cpp:30
Fw
Types
StructSerializable.hpp
Generated by
1.8.19