F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
TimeBasePairSerializableAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title TimeBasePairSerializableAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for TimeBasePair struct
5 // ======================================================================
6 
7 #ifndef Svc_TimeBasePairSerializableAc_HPP
8 #define Svc_TimeBasePairSerializableAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #include "Fw/Types/String.hpp"
15 
16 namespace Svc {
17 
20  class TimeBasePair :
21  public Fw::Serializable
22  {
23 
24  public:
25 
26  // ----------------------------------------------------------------------
27  // Constants
28  // ----------------------------------------------------------------------
29 
30  enum {
35  };
36 
37  public:
38 
39  // ----------------------------------------------------------------------
40  // Constructors
41  // ----------------------------------------------------------------------
42 
44  TimeBasePair();
45 
48  TimeBase::T lower,
49  TimeBase::T upper
50  );
51 
54  const TimeBasePair& obj
55  );
56 
57  public:
58 
59  // ----------------------------------------------------------------------
60  // Operators
61  // ----------------------------------------------------------------------
62 
65  const TimeBasePair& obj
66  );
67 
69  bool operator==(
70  const TimeBasePair& obj
71  ) const;
72 
74  bool operator!=(
75  const TimeBasePair& obj
76  ) const;
77 
78 #ifdef BUILD_UT
79 
81  friend std::ostream& operator<<(
82  std::ostream& os,
83  const TimeBasePair& obj
84  );
85 
86 #endif
87 
88  public:
89 
90  // ----------------------------------------------------------------------
91  // Member functions
92  // ----------------------------------------------------------------------
93 
96  Fw::SerialBufferBase& buffer,
98  ) const;
99 
102  Fw::SerialBufferBase& buffer,
104  );
105 
107  FwSizeType serializedSize() const;
108 
109 #if FW_SERIALIZABLE_TO_STRING
110 
112  void toString(
113  Fw::StringBase& sb
114  ) const;
115 
116 #endif
117 
118  // ----------------------------------------------------------------------
119  // Getter functions
120  // ----------------------------------------------------------------------
121 
124  {
125  return this->m_lower.e;
126  }
127 
130  {
131  return this->m_upper.e;
132  }
133 
134  // ----------------------------------------------------------------------
135  // Setter functions
136  // ----------------------------------------------------------------------
137 
139  void set(
140  TimeBase::T lower,
141  TimeBase::T upper
142  );
143 
145  void set_lower(TimeBase::T lower);
146 
148  void set_upper(TimeBase::T upper);
149 
150  protected:
151 
152  // ----------------------------------------------------------------------
153  // Member variables
154  // ----------------------------------------------------------------------
155 
158 
159  };
160 
161 }
162 
163 #endif
TimeBase::T get_lower() const
Get member lower.
TimeBasePair & operator=(const TimeBasePair &obj)
Copy assignment operator.
void set_lower(TimeBase::T lower)
Set member lower.
PlatformSizeType FwSizeType
TimeBasePair()
Constructor (default value)
bool operator!=(const TimeBasePair &obj) const
Inequality operator.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
T
The raw enum type.
bool operator==(const TimeBasePair &obj) const
Equality operator.
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
TimeBase::T get_upper() const
Get member upper.
SerializeStatus
forward declaration for string
The size of the serial representation.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
The size of the serial representation.
RateGroupDivider component implementation.
void set_upper(TimeBase::T upper)
Set member upper.
enum T e
The raw enum value.
Endianness
Define enumeration for Time base types.
Big endian serialization.