F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
CancelStatusPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title CancelStatusPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for CancelStatus port
5 // ======================================================================
6 
7 #ifndef Svc_CancelStatusPortAc_HPP
8 #define Svc_CancelStatusPortAc_HPP
9 
10 #include <cstdio>
11 #include <cstring>
12 
14 #include "Fw/FPrimeBasicTypes.hpp"
18 #include "Fw/Types/String.hpp"
19 
20 namespace Svc {
21 
24  public Fw::InputPortBase
25  {
26 
27  public:
28 
29  // ----------------------------------------------------------------------
30  // Constants
31  // ----------------------------------------------------------------------
32 
33  enum {
36  };
37 
38  public:
39 
40  // ----------------------------------------------------------------------
41  // Types
42  // ----------------------------------------------------------------------
43 
45  typedef void (*CompFuncPtr)(
46  Fw::PassiveComponentBase* callComp,
47  FwIndexType portNum
48  );
49 
50  public:
51 
52  // ----------------------------------------------------------------------
53  // Input Port Member functions
54  // ----------------------------------------------------------------------
55 
58 
60  void init();
61 
63  void addCallComp(
64  Fw::PassiveComponentBase* callComp,
65  CompFuncPtr funcPtr
66  );
67 
69  void invoke();
70 
71  private:
72 
73 #if FW_PORT_SERIALIZATION == 1
74 
76  Fw::SerializeStatus invokeSerial(Fw::LinearBufferBase& _buffer);
77 
78 #endif
79 
80  private:
81 
82  // ----------------------------------------------------------------------
83  // Member variables
84  // ----------------------------------------------------------------------
85 
87  CompFuncPtr m_func;
88 
89  };
90 
93  public Fw::OutputPortBase
94  {
95 
96  public:
97 
98  // ----------------------------------------------------------------------
99  // Output Port Member functions
100  // ----------------------------------------------------------------------
101 
104 
106  void init();
107 
109  void addCallPort(
110  InputCancelStatusPort* callPort
111  );
112 
114  void invoke() const;
115 
116  private:
117 
118  // ----------------------------------------------------------------------
119  // Member variables
120  // ----------------------------------------------------------------------
121 
123  InputCancelStatusPort* m_port;
124 
125  };
126 
127 }
128 
129 #endif
Output CancelStatus port.
SerializeStatus
forward declaration for string
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void invoke() const
Invoke a port interface.
Input CancelStatus port.
The size of the serial representations of the port arguments.
void invoke()
Invoke a port interface.
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum)
The port callback function type.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
void init()
Initialization function.
void init()
Initialization function.
void addCallPort(InputCancelStatusPort *callPort)
Register an input port.