F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FrameContextSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FrameContextSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for FrameContext struct
5 // ======================================================================
6 
7 #ifndef ComCfg_FrameContextSerializableAc_HPP
8 #define ComCfg_FrameContextSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
15 
16 namespace ComCfg {
17 
19  class FrameContext :
20  public Fw::Serializable
21  {
22 
23  public:
24 
25  // ----------------------------------------------------------------------
26  // Constants
27  // ----------------------------------------------------------------------
28 
29  enum {
32  sizeof(FwIndexType)
33  };
34 
35  public:
36 
37  // ----------------------------------------------------------------------
38  // Constructors
39  // ----------------------------------------------------------------------
40 
42  FrameContext();
43 
45  FrameContext(FwIndexType comQueueIndex);
46 
49  const FrameContext& obj
50  );
51 
52  public:
53 
54  // ----------------------------------------------------------------------
55  // Operators
56  // ----------------------------------------------------------------------
57 
60  const FrameContext& obj
61  );
62 
64  bool operator==(
65  const FrameContext& obj
66  ) const;
67 
69  bool operator!=(
70  const FrameContext& obj
71  ) const;
72 
73 #ifdef BUILD_UT
74 
76  friend std::ostream& operator<<(
77  std::ostream& os,
78  const FrameContext& obj
79  );
80 
81 #endif
82 
83  public:
84 
85  // ----------------------------------------------------------------------
86  // Member functions
87  // ----------------------------------------------------------------------
88 
92  ) const;
93 
97  );
98 
99 #if FW_SERIALIZABLE_TO_STRING
100 
102  void toString(
103  Fw::StringBase& sb
104  ) const;
105 
106 #endif
107 
108  // ----------------------------------------------------------------------
109  // Getter functions
110  // ----------------------------------------------------------------------
111 
114  {
115  return this->m_comQueueIndex;
116  }
117 
118  // ----------------------------------------------------------------------
119  // Setter functions
120  // ----------------------------------------------------------------------
121 
123  void set(FwIndexType comQueueIndex);
124 
126  void setcomQueueIndex(FwIndexType comQueueIndex);
127 
128  protected:
129 
130  // ----------------------------------------------------------------------
131  // Member variables
132  // ----------------------------------------------------------------------
133 
135 
136  };
137 
138 }
139 
140 #endif
FrameContext()
Constructor (default value)
bool operator!=(const FrameContext &obj) const
Inequality operator.
SerializeStatus
forward declaration for string
The size of the serial representation.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
bool operator==(const FrameContext &obj) const
Equality operator.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
forward declaration
FwIndexType getcomQueueIndex() const
Get member comQueueIndex.
void setcomQueueIndex(FwIndexType comQueueIndex)
Set member comQueueIndex.
FrameContext & operator=(const FrameContext &obj)
Copy assignment operator.