F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
CmdSeqCancelPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title CmdSeqCancelPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for CmdSeqCancel port
5 // ======================================================================
6 
7 #ifndef Svc_CmdSeqCancelPortAc_HPP
8 #define Svc_CmdSeqCancelPortAc_HPP
9 
10 #include <cstdio>
11 #include <cstring>
12 
13 #include "FpConfig.hpp"
18 #include "Fw/Types/StringType.hpp"
19 
20 namespace Svc {
21 
25  public Fw::InputPortBase
26  {
27 
28  public:
29 
30  // ----------------------------------------------------------------------
31  // Constants
32  // ----------------------------------------------------------------------
33 
34  enum {
36  SERIALIZED_SIZE = 0
37  };
38 
39  public:
40 
41  // ----------------------------------------------------------------------
42  // Types
43  // ----------------------------------------------------------------------
44 
46  typedef void (*CompFuncPtr)(
47  Fw::PassiveComponentBase* callComp,
48  NATIVE_INT_TYPE portNum
49  );
50 
51  public:
52 
53  // ----------------------------------------------------------------------
54  // Input Port Member functions
55  // ----------------------------------------------------------------------
56 
59 
61  void init();
62 
64  void addCallComp(
65  Fw::PassiveComponentBase* callComp,
66  CompFuncPtr funcPtr
67  );
68 
70  void invoke();
71 
72  private:
73 
74 #if FW_PORT_SERIALIZATION == 1
75 
77  Fw::SerializeStatus invokeSerial(Fw::SerializeBufferBase& _buffer);
78 
79 #endif
80 
81  private:
82 
83  // ----------------------------------------------------------------------
84  // Member variables
85  // ----------------------------------------------------------------------
86 
88  CompFuncPtr m_func;
89 
90  };
91 
95  public Fw::OutputPortBase
96  {
97 
98  public:
99 
100  // ----------------------------------------------------------------------
101  // Output Port Member functions
102  // ----------------------------------------------------------------------
103 
106 
108  void init();
109 
111  void addCallPort(
112  InputCmdSeqCancelPort* callPort
113  );
114 
116  void invoke();
117 
118  private:
119 
120  // ----------------------------------------------------------------------
121  // Member variables
122  // ----------------------------------------------------------------------
123 
125  InputCmdSeqCancelPort* m_port;
126 
127  };
128 
129 }
130 
131 #endif
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:51
C++-compatible configuration header for fprime configuration.
Declares ISF string base class.
void invoke()
Invoke a port interface.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void init()
Initialization function.
@ SERIALIZED_SIZE
The size of the serial representations of the port arguments.
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, NATIVE_INT_TYPE portNum)
The port callback function type.
void invoke()
Invoke a port interface.
void init()
Initialization function.
void addCallPort(InputCmdSeqCancelPort *callPort)
Register an input port.
SerializeStatus
forward declaration for string