F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FooterSerializableAc.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title FooterSerializableAc.hpp
3
// \author Generated by fpp-to-cpp
4
// \brief hpp file for Footer struct
5
// ======================================================================
6
7
#ifndef Svc_Fpy_FooterSerializableAc_HPP
8
#define Svc_Fpy_FooterSerializableAc_HPP
9
10
#include "
Fw/FPrimeBasicTypes.hpp
"
11
#include "
Fw/Types/ExternalString.hpp
"
12
#include "
Fw/Types/Serializable.hpp
"
13
#include "
Fw/Types/String.hpp
"
14
15
namespace
Svc
{
16
17
namespace
Fpy {
18
19
class
Footer
:
20
public
Fw::Serializable
21
{
22
23
public
:
24
25
// ----------------------------------------------------------------------
26
// Constants
27
// ----------------------------------------------------------------------
28
29
enum
{
31
SERIALIZED_SIZE
=
32
sizeof
(U32)
33
};
34
35
public
:
36
37
// ----------------------------------------------------------------------
38
// Constructors
39
// ----------------------------------------------------------------------
40
42
Footer
();
43
45
Footer
(U32 crc);
46
48
Footer
(
49
const
Footer
& obj
50
);
51
52
public
:
53
54
// ----------------------------------------------------------------------
55
// Operators
56
// ----------------------------------------------------------------------
57
59
Footer
&
operator=
(
60
const
Footer
& obj
61
);
62
64
bool
operator==
(
65
const
Footer
& obj
66
)
const
;
67
69
bool
operator!=
(
70
const
Footer
& obj
71
)
const
;
72
73
#ifdef BUILD_UT
74
76
friend
std::ostream& operator<<(
77
std::ostream& os,
78
const
Footer
& obj
79
);
80
81
#endif
82
83
public
:
84
85
// ----------------------------------------------------------------------
86
// Member functions
87
// ----------------------------------------------------------------------
88
90
Fw::SerializeStatus
serializeTo
(
91
Fw::SerialBufferBase
& buffer,
92
Fw::Endianness
mode =
Fw::Endianness::BIG
93
)
const
;
94
96
Fw::SerializeStatus
deserializeFrom
(
97
Fw::SerialBufferBase
& buffer,
98
Fw::Endianness
mode =
Fw::Endianness::BIG
99
);
100
102
FwSizeType
serializedSize
()
const
;
103
104
#if FW_SERIALIZABLE_TO_STRING
105
107
void
toString(
108
Fw::StringBase
& sb
109
)
const
;
110
111
#endif
112
113
// ----------------------------------------------------------------------
114
// Getter functions
115
// ----------------------------------------------------------------------
116
118
U32
get_crc
()
const
119
{
120
return
this->
m_crc
;
121
}
122
123
// ----------------------------------------------------------------------
124
// Setter functions
125
// ----------------------------------------------------------------------
126
128
void
set
(U32 crc);
129
131
void
set_crc
(U32 crc);
132
133
protected
:
134
135
// ----------------------------------------------------------------------
136
// Member variables
137
// ----------------------------------------------------------------------
138
139
U32
m_crc
;
140
141
};
142
143
}
144
145
}
146
147
#endif
String.hpp
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
Svc::Fpy::Footer::operator==
bool operator==(const Footer &obj) const
Equality operator.
Definition:
FooterSerializableAc.cpp:58
ExternalString.hpp
FPrimeBasicTypes.hpp
Svc::Fpy::Footer::m_crc
U32 m_crc
Definition:
FooterSerializableAc.hpp:139
Svc::Fpy::Footer::operator!=
bool operator!=(const Footer &obj) const
Inequality operator.
Definition:
FooterSerializableAc.cpp:64
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Svc::Fpy::Footer::Footer
Footer()
Constructor (default value)
Definition:
FooterSerializableAc.cpp:19
Svc::Fpy::Footer::deserializeFrom
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
Definition:
FooterSerializableAc.cpp:101
Fw::SerialBufferBase
Definition:
Serializable.hpp:112
Svc::Fpy::Footer::serializeTo
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
Definition:
FooterSerializableAc.cpp:85
Svc::Fpy::Footer::SERIALIZED_SIZE
The size of the serial representation.
Definition:
FooterSerializableAc.hpp:31
Svc::Fpy::Footer::get_crc
U32 get_crc() const
Get member crc.
Definition:
FooterSerializableAc.hpp:118
Svc::Fpy::Footer
Definition:
FooterSerializableAc.hpp:19
Svc::Fpy::Footer::operator=
Footer & operator=(const Footer &obj)
Copy assignment operator.
Definition:
FooterSerializableAc.cpp:47
Fw::Serializable
Definition:
Serializable.hpp:42
Svc
RateGroupDivider component implementation.
Definition:
ActiveRateGroupCfg.hpp:18
Fw::Endianness
Endianness
Definition:
Serializable.hpp:37
Fw::StringBase
Definition:
StringBase.hpp:25
Svc::Fpy::Footer::set_crc
void set_crc(U32 crc)
Set member crc.
Definition:
FooterSerializableAc.cpp:152
Svc::Fpy::Footer::serializedSize
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
Definition:
FooterSerializableAc.cpp:117
Fw::Endianness::BIG
Big endian serialization.
Serializable.hpp
Svc
FpySequencer
FooterSerializableAc.hpp
Generated by
1.8.14