F´ Flight Software - C/C++ Documentation  devel
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 "FpConfig.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 
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 
118  {
119  return this->m_status.e;
120  }
121 
123  U32 getcontext() const
124  {
125  return this->m_context;
126  }
127 
128  // ----------------------------------------------------------------------
129  // Setter functions
130  // ----------------------------------------------------------------------
131 
133  void set(
134  Svc::SendFileStatus::T status,
135  U32 context
136  );
137 
139  void setstatus(Svc::SendFileStatus::T status);
140 
142  void setcontext(U32 context);
143 
144  protected:
145 
146  // ----------------------------------------------------------------------
147  // Member variables
148  // ----------------------------------------------------------------------
149 
152 
153  };
154 
155 }
156 
157 #endif
C++-compatible configuration header for fprime configuration.
forward declaration
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
U32 getcontext() const
Get member context.
void setstatus(Svc::SendFileStatus::T status)
Set member status.
void setcontext(U32 context)
Set member context.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
SendFileResponse()
Constructor (default value)
@ SERIALIZED_SIZE
The size of the serial representation.
void set(Svc::SendFileStatus::T status, U32 context)
Set all members.
bool operator==(const SendFileResponse &obj) const
Equality operator.
Svc::SendFileStatus::T getstatus() const
Get member status.
bool operator!=(const SendFileResponse &obj) const
Inequality operator.
SendFileResponse & operator=(const SendFileResponse &obj)
Copy assignment operator.
Send file status enum.
T e
The raw enum value.
@ SERIALIZED_SIZE
The size of the serial representation.
SerializeStatus
forward declaration for string