F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FpySequencer_GetFlagDirectiveSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FpySequencer_GetFlagDirectiveSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for FpySequencer_GetFlagDirective struct
5 // ======================================================================
6 
7 #ifndef Svc_FpySequencer_GetFlagDirectiveSerializableAc_HPP
8 #define Svc_FpySequencer_GetFlagDirectiveSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
14 
15 namespace Svc {
16 
19  public Fw::Serializable
20  {
21 
22  public:
23 
24  // ----------------------------------------------------------------------
25  // Constants
26  // ----------------------------------------------------------------------
27 
28  enum {
31  sizeof(U8)
32  };
33 
34  public:
35 
36  // ----------------------------------------------------------------------
37  // Constructors
38  // ----------------------------------------------------------------------
39 
42 
45 
49  );
50 
51  public:
52 
53  // ----------------------------------------------------------------------
54  // Operators
55  // ----------------------------------------------------------------------
56 
60  );
61 
63  bool operator==(
65  ) const;
66 
68  bool operator!=(
70  ) const;
71 
72 #ifdef BUILD_UT
73 
75  friend std::ostream& operator<<(
76  std::ostream& os,
78  );
79 
80 #endif
81 
82  public:
83 
84  // ----------------------------------------------------------------------
85  // Member functions
86  // ----------------------------------------------------------------------
87 
90  Fw::SerialBufferBase& buffer,
92  ) const;
93 
96  Fw::SerialBufferBase& buffer,
98  );
99 
101  FwSizeType serializedSize() const;
102 
103 #if FW_SERIALIZABLE_TO_STRING
104 
106  void toString(
107  Fw::StringBase& sb
108  ) const;
109 
110 #endif
111 
112  // ----------------------------------------------------------------------
113  // Getter functions
114  // ----------------------------------------------------------------------
115 
117  U8 get_flagIdx() const
118  {
119  return this->m_flagIdx;
120  }
121 
122  // ----------------------------------------------------------------------
123  // Setter functions
124  // ----------------------------------------------------------------------
125 
127  void set(U8 flagIdx);
128 
130  void set_flagIdx(U8 flagIdx);
131 
132  protected:
133 
134  // ----------------------------------------------------------------------
135  // Member variables
136  // ----------------------------------------------------------------------
137 
139 
140  };
141 
142 }
143 
144 #endif
PlatformSizeType FwSizeType
bool operator==(const FpySequencer_GetFlagDirective &obj) const
Equality operator.
SerializeStatus
forward declaration for string
FpySequencer_GetFlagDirective & operator=(const FpySequencer_GetFlagDirective &obj)
Copy assignment operator.
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
bool operator!=(const FpySequencer_GetFlagDirective &obj) const
Inequality operator.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
RateGroupDivider component implementation.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
Endianness
gets a flag and pushes its value as a U8 to the stack
Big endian serialization.