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