F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ConvertTimePortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ConvertTimePortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for ConvertTime port
5 // ======================================================================
6 
7 #ifndef Svc_ConvertTimePortAc_HPP
8 #define Svc_ConvertTimePortAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
11 #include "Fw/Time/Time.hpp"
13 #if !FW_DIRECT_PORT_CALLS
17 #endif
18 
19 namespace Svc {
20 
21 #if !FW_DIRECT_PORT_CALLS
22 
26  public Fw::InputPortBase
27  {
28 
29  public:
30 
31  // ----------------------------------------------------------------------
32  // Public types for InputConvertTimePort
33  // ----------------------------------------------------------------------
34 
37  Fw::PassiveComponentBase* callComp,
38  FwIndexType portNum,
39  const Fw::Time& in_time,
40  Fw::Time& out_time
41  );
42 
43  public:
44 
45  // ----------------------------------------------------------------------
46  // Public constructors for InputConvertTimePort
47  // ----------------------------------------------------------------------
48 
51 
52  public:
53 
54  // ----------------------------------------------------------------------
55  // Public member functions for InputConvertTimePort
56  // ----------------------------------------------------------------------
57 
59  void init();
60 
62  void addCallComp(
63  Fw::PassiveComponentBase* callComp,
64  CompFuncPtr funcPtr
65  );
66 
69  const Fw::Time& in_time,
70  Fw::Time& out_time
71  );
72 
73  private:
74 
75  // ----------------------------------------------------------------------
76  // Private member functions for InputConvertTimePort
77  // ----------------------------------------------------------------------
78 
79 #if FW_PORT_SERIALIZATION == 1
80 
83  Fw::SerializeStatus invokeSerial(
84  Fw::LinearBufferBase& _buffer
85  );
86 
87 #endif
88 
89  private:
90 
91  // ----------------------------------------------------------------------
92  // Private member variables for InputConvertTimePort
93  // ----------------------------------------------------------------------
94 
96  CompFuncPtr m_func;
97 
98  };
99 
103  public Fw::OutputPortBase
104  {
105 
106  public:
107 
108  // ----------------------------------------------------------------------
109  // Public constructors for OutputConvertTimePort
110  // ----------------------------------------------------------------------
111 
114 
115  public:
116 
117  // ----------------------------------------------------------------------
118  // Public member functions for OutputConvertTimePort
119  // ----------------------------------------------------------------------
120 
122  void init();
123 
125  void addCallPort(
126  InputConvertTimePort* callPort
127  );
128 
132  const Fw::Time& in_time,
133  Fw::Time& out_time
134  ) const;
135 
136  private:
137 
138  // ----------------------------------------------------------------------
139  // Private member variables for OutputConvertTimePort
140  // ----------------------------------------------------------------------
141 
143  InputConvertTimePort* m_port;
144 
145  };
146 
147 #endif
148 
149 }
150 
151 #endif
void init()
Initialization function.
Svc::ConvertTimeStatus(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, const Fw::Time &in_time, Fw::Time &out_time)
The port callback function type.
Svc::ConvertTimeStatus invoke(const Fw::Time &in_time, Fw::Time &out_time) const
SerializeStatus
forward declaration for string
Svc::ConvertTimeStatus invoke(const Fw::Time &in_time, Fw::Time &out_time)
Invoke a port interface.
Result of a time base conversion.
void init()
Initialization function.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
void addCallPort(InputConvertTimePort *callPort)
Register an input port.