F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
PrmGetPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title PrmGetPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for PrmGet port
5 // ======================================================================
6 
7 #ifndef Fw_PrmGetPortAc_HPP
8 #define Fw_PrmGetPortAc_HPP
9 
10 #include <cstdio>
11 #include <cstring>
12 
14 #include "Fw/FPrimeBasicTypes.hpp"
17 #include "Fw/Prm/ParamBuffer.hpp"
19 #include "Fw/Types/String.hpp"
21 
22 namespace Fw {
23 
27  public Fw::InputPortBase
28  {
29 
30  public:
31 
32  // ----------------------------------------------------------------------
33  // Constants
34  // ----------------------------------------------------------------------
35 
36  enum {
39  sizeof(FwPrmIdType) +
41  };
42 
43  public:
44 
45  // ----------------------------------------------------------------------
46  // Types
47  // ----------------------------------------------------------------------
48 
51  Fw::PassiveComponentBase* callComp,
52  FwIndexType portNum,
53  FwPrmIdType id,
54  Fw::ParamBuffer& val
55  );
56 
57  public:
58 
59  // ----------------------------------------------------------------------
60  // Input Port Member functions
61  // ----------------------------------------------------------------------
62 
65 
67  void init();
68 
70  void addCallComp(
71  Fw::PassiveComponentBase* callComp,
72  CompFuncPtr funcPtr
73  );
74 
77  FwPrmIdType id,
78  Fw::ParamBuffer& val
79  );
80 
81  private:
82 
83 #if FW_PORT_SERIALIZATION == 1
84 
86  Fw::SerializeStatus invokeSerial(Fw::SerializeBufferBase& _buffer);
87 
88 #endif
89 
90  private:
91 
92  // ----------------------------------------------------------------------
93  // Member variables
94  // ----------------------------------------------------------------------
95 
97  CompFuncPtr m_func;
98 
99  };
100 
104  public Fw::OutputPortBase
105  {
106 
107  public:
108 
109  // ----------------------------------------------------------------------
110  // Output Port Member functions
111  // ----------------------------------------------------------------------
112 
115 
117  void init();
118 
120  void addCallPort(
121  InputPrmGetPort* callPort
122  );
123 
126  FwPrmIdType id,
127  Fw::ParamBuffer& val
128  ) const;
129 
130  private:
131 
132  // ----------------------------------------------------------------------
133  // Member variables
134  // ----------------------------------------------------------------------
135 
137  InputPrmGetPort* m_port;
138 
139  };
140 
141 }
142 
143 #endif
The size of the serial representations of the port arguments.
OutputPrmGetPort()
Constructor.
void init()
Initialization function.
void addCallPort(InputPrmGetPort *callPort)
Register an input port.
SerializeStatus
forward declaration for string
Fw::ParamValid invoke(FwPrmIdType id, Fw::ParamBuffer &val)
Invoke a port interface.
Fw::ParamValid invoke(FwPrmIdType id, Fw::ParamBuffer &val) const
Invoke a port interface.
Fw::ParamValid(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwPrmIdType id, Fw::ParamBuffer &val)
The port callback function type.
U32 FwPrmIdType
The type of a parameter identifier.
InputPrmGetPort()
Constructor.
PlatformIndexType FwIndexType
Enum representing parameter validity.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void init()
Initialization function.