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  );
81 
82  private:
83 
84 #if FW_PORT_SERIALIZATION == 1
85 
87  Fw::SerializeStatus invokeSerial(Fw::SerializeBufferBase& _buffer);
88 
89 #endif
90 
91  private:
92 
93  // ----------------------------------------------------------------------
94  // Member variables
95  // ----------------------------------------------------------------------
96 
98  CompFuncPtr m_func;
99 
100  };
101 
105  public Fw::OutputPortBase
106  {
107 
108  public:
109 
110  // ----------------------------------------------------------------------
111  // Output Port Member functions
112  // ----------------------------------------------------------------------
113 
116 
118  void init();
119 
121  void addCallPort(
122  InputPrmGetPort* callPort
123  );
124 
127  FwPrmIdType id,
128  Fw::ParamBuffer& val
129  ) const;
131 
132  private:
133 
134  // ----------------------------------------------------------------------
135  // Member variables
136  // ----------------------------------------------------------------------
137 
139  InputPrmGetPort* m_port;
140 
141  };
142 
143 }
144 
145 #endif
FwIdType FwPrmIdType
The type of a parameter identifier.
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.
The size of the serial representations of the port arguments.
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.
InputPrmGetPort()
Constructor.
PlatformIndexType FwIndexType
Enum representing parameter validity.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void init()
Initialization function.