F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
ActiveLogger_FilterSeverityEnumAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ActiveLogger_FilterSeverityEnumAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for ActiveLogger_FilterSeverity enum
5 // ======================================================================
6 
7 #ifndef Svc_ActiveLogger_ActiveLogger_FilterSeverityEnumAc_HPP
8 #define Svc_ActiveLogger_ActiveLogger_FilterSeverityEnumAc_HPP
9 
10 #include "FpConfig.hpp"
12 #include "Fw/Types/String.hpp"
13 
14 namespace Svc {
15 
19  public Fw::Serializable
20  {
21 
22  public:
23 
24  // ----------------------------------------------------------------------
25  // Types
26  // ----------------------------------------------------------------------
27 
29  typedef I32 SerialType;
30 
32  enum T {
38  COMMAND = 2,
45  };
46 
48  typedef T t;
49 
50  public:
51 
52  // ----------------------------------------------------------------------
53  // Constants
54  // ----------------------------------------------------------------------
55 
56  enum {
61  };
62 
63  public:
64 
65  // ----------------------------------------------------------------------
66  // Constructors
67  // ----------------------------------------------------------------------
68 
71  {
72  this->e = WARNING_HI;
73  }
74 
77  const T e1
78  )
79  {
80  this->e = e1;
81  }
82 
85  const ActiveLogger_FilterSeverity& obj
86  )
87  {
88  this->e = obj.e;
89  }
90 
91  public:
92 
93  // ----------------------------------------------------------------------
94  // Operators
95  // ----------------------------------------------------------------------
96 
99  const ActiveLogger_FilterSeverity& obj
100  );
101 
104  T e1
105  );
106 
108  operator T() const
109  {
110  return this->e;
111  }
112 
114  bool operator==(T e1) const
115  {
116  return this->e == e1;
117  }
118 
120  bool operator!=(T e1) const
121  {
122  return !(*this == e1);
123  }
124 
125 #ifdef BUILD_UT
126 
128  friend std::ostream& operator<<(
129  std::ostream& os,
130  const ActiveLogger_FilterSeverity& obj
131  );
132 
133 #endif
134 
135  public:
136 
137  // ----------------------------------------------------------------------
138  // Member functions
139  // ----------------------------------------------------------------------
140 
142  bool isValid() const;
143 
146  Fw::SerializeBufferBase& buffer
147  ) const;
148 
151  Fw::SerializeBufferBase& buffer
152  );
153 
154 #if FW_SERIALIZABLE_TO_STRING
155 
157  void toString(
158  Fw::StringBase& sb
159  ) const;
160 
161 #endif
162 
163  public:
164 
165  // ----------------------------------------------------------------------
166  // Member variables
167  // ----------------------------------------------------------------------
168 
170  T e;
171 
172  };
173 
174 }
175 
176 #endif
C++-compatible configuration header for fprime configuration.
forward declaration
ActiveLogger_FilterSeverity()
Constructor (default value of WARNING_HI)
ActiveLogger_FilterSeverity(const ActiveLogger_FilterSeverity &obj)
Copy constructor.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialize raw enum value to SerialType.
bool isValid() const
Check raw enum value for validity.
ActiveLogger_FilterSeverity(const T e1)
Constructor (user-provided value)
I32 SerialType
The serial representation type.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
bool operator==(T e1) const
Equality operator.
bool operator!=(T e1) const
Inequality operator.
@ SERIALIZED_SIZE
The size of the serial representation.
@ NUM_CONSTANTS
The number of enumerated constants.
ActiveLogger_FilterSeverity & operator=(const ActiveLogger_FilterSeverity &obj)
Copy assignment operator (object)
SerializeStatus
forward declaration for string