F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
SendFileResponseSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title SendFileResponseSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for SendFileResponse struct
5 // ======================================================================
6 
7 #ifndef Svc_SendFileResponseSerializableAc_HPP
8 #define Svc_SendFileResponseSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
15 
16 namespace Svc {
17 
20  public Fw::Serializable
21  {
22 
23  public:
24 
25  // ----------------------------------------------------------------------
26  // Constants
27  // ----------------------------------------------------------------------
28 
29  enum {
33  sizeof(U32)
34  };
35 
36  public:
37 
38  // ----------------------------------------------------------------------
39  // Constructors
40  // ----------------------------------------------------------------------
41 
44 
48  U32 context
49  );
50 
53  const SendFileResponse& obj
54  );
55 
56  public:
57 
58  // ----------------------------------------------------------------------
59  // Operators
60  // ----------------------------------------------------------------------
61 
64  const SendFileResponse& obj
65  );
66 
68  bool operator==(
69  const SendFileResponse& obj
70  ) const;
71 
73  bool operator!=(
74  const SendFileResponse& obj
75  ) const;
76 
77 #ifdef BUILD_UT
78 
80  friend std::ostream& operator<<(
81  std::ostream& os,
82  const SendFileResponse& obj
83  );
84 
85 #endif
86 
87  public:
88 
89  // ----------------------------------------------------------------------
90  // Member functions
91  // ----------------------------------------------------------------------
92 
96  ) const;
97 
100  Fw::SerializeBufferBase& buffer
101  );
102 
104  FwSizeType serializedSize() const;
105 
106 #if FW_SERIALIZABLE_TO_STRING
107 
109  void toString(
110  Fw::StringBase& sb
111  ) const;
112 
113 #endif
114 
115  // ----------------------------------------------------------------------
116  // Getter functions
117  // ----------------------------------------------------------------------
118 
121  {
122  return this->m_status.e;
123  }
124 
126  U32 get_context() const
127  {
128  return this->m_context;
129  }
130 
131  // ----------------------------------------------------------------------
132  // Setter functions
133  // ----------------------------------------------------------------------
134 
136  void set(
137  Svc::SendFileStatus::T status,
138  U32 context
139  );
140 
142  void set_status(Svc::SendFileStatus::T status);
143 
145  void set_context(U32 context);
146 
147  protected:
148 
149  // ----------------------------------------------------------------------
150  // Member variables
151  // ----------------------------------------------------------------------
152 
155 
156  };
157 
158 }
159 
160 #endif
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
SendFileResponse & operator=(const SendFileResponse &obj)
Copy assignment operator.
void set_status(Svc::SendFileStatus::T status)
Set member status.
PlatformSizeType FwSizeType
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialization.
Svc::SendFileStatus::T get_status() const
Get member status.
SendFileResponse()
Constructor (default value)
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialization.
SerializeStatus
forward declaration for string
T e
The raw enum value.
U32 get_context() const
Get member context.
bool operator!=(const SendFileResponse &obj) const
Inequality operator.
The size of the serial representation.
The size of the serial representation.
Send file response struct.
void set_context(U32 context)
Set member context.
forward declaration
RateGroupDivider component implementation.
Send file status enum.
bool operator==(const SendFileResponse &obj) const
Equality operator.