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 
95  Fw::SerialBufferBase& buffer,
97  ) const;
98 
101  Fw::SerialBufferBase& buffer,
103  );
104 
106  FwSizeType serializedSize() const;
107 
108 #if FW_SERIALIZABLE_TO_STRING
109 
111  void toString(
112  Fw::StringBase& sb
113  ) const;
114 
115 #endif
116 
117  // ----------------------------------------------------------------------
118  // Getter functions
119  // ----------------------------------------------------------------------
120 
123  {
124  return this->m_status.e;
125  }
126 
128  U32 get_context() const
129  {
130  return this->m_context;
131  }
132 
133  // ----------------------------------------------------------------------
134  // Setter functions
135  // ----------------------------------------------------------------------
136 
138  void set(
139  Svc::SendFileStatus::T status,
140  U32 context
141  );
142 
144  void set_status(Svc::SendFileStatus::T status);
145 
147  void set_context(U32 context);
148 
149  protected:
150 
151  // ----------------------------------------------------------------------
152  // Member variables
153  // ----------------------------------------------------------------------
154 
157 
158  };
159 
160 }
161 
162 #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
Svc::SendFileStatus::T get_status() const
Get member status.
SendFileResponse()
Constructor (default value)
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
SerializeStatus
forward declaration for string
T e
The raw enum value.
U32 get_context() const
Get member context.
The size of the serial representation.
bool operator!=(const SendFileResponse &obj) const
Inequality operator.
Send file response struct.
void set_context(U32 context)
Set member context.
RateGroupDivider component implementation.
Send file status enum.
The size of the serial representation.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
Endianness
Big endian serialization.
bool operator==(const SendFileResponse &obj) const
Equality operator.