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"
12 #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 {
32  sizeof(U32)
33  };
34 
35  public:
36 
37  // ----------------------------------------------------------------------
38  // Constructors
39  // ----------------------------------------------------------------------
40 
43 
47  U32 context
48  );
49 
52  const SendFileResponse& obj
53  );
54 
55  public:
56 
57  // ----------------------------------------------------------------------
58  // Operators
59  // ----------------------------------------------------------------------
60 
63  const SendFileResponse& obj
64  );
65 
67  bool operator==(
68  const SendFileResponse& obj
69  ) const;
70 
72  bool operator!=(
73  const SendFileResponse& obj
74  ) const;
75 
76 #ifdef BUILD_UT
77 
79  friend std::ostream& operator<<(
80  std::ostream& os,
81  const SendFileResponse& obj
82  );
83 
84 #endif
85 
86  public:
87 
88  // ----------------------------------------------------------------------
89  // Member functions
90  // ----------------------------------------------------------------------
91 
95  ) const;
96 
100  );
101 
102 #if FW_SERIALIZABLE_TO_STRING
103 
105  void toString(
106  Fw::StringBase& sb
107  ) const;
108 
109 #endif
110 
111  // ----------------------------------------------------------------------
112  // Getter functions
113  // ----------------------------------------------------------------------
114 
117  {
118  return this->m_status.e;
119  }
120 
122  U32 getcontext() const
123  {
124  return this->m_context;
125  }
126 
127  // ----------------------------------------------------------------------
128  // Setter functions
129  // ----------------------------------------------------------------------
130 
132  void set(
133  Svc::SendFileStatus::T status,
134  U32 context
135  );
136 
138  void setstatus(Svc::SendFileStatus::T status);
139 
141  void setcontext(U32 context);
142 
143  protected:
144 
145  // ----------------------------------------------------------------------
146  // Member variables
147  // ----------------------------------------------------------------------
148 
151 
152  };
153 
154 }
155 
156 #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.
@ SERIALIZED_SIZE
The size of the serial representation.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
SendFileResponse()
Constructor (default value)
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