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 "Fw/FPrimeBasicTypes.hpp"
11 #include "Fw/Prm/ParamBuffer.hpp"
14 #if !FW_DIRECT_PORT_CALLS
18 #endif
19 
20 namespace Fw {
21 
22 #if !FW_DIRECT_PORT_CALLS
23 
27  public Fw::InputPortBase
28  {
29 
30  public:
31 
32  // ----------------------------------------------------------------------
33  // Public types for InputPrmGetPort
34  // ----------------------------------------------------------------------
35 
38  Fw::PassiveComponentBase* callComp,
39  FwIndexType portNum,
40  FwPrmIdType id,
41  Fw::ParamBuffer& val
42  );
43 
44  public:
45 
46  // ----------------------------------------------------------------------
47  // Public constructors for InputPrmGetPort
48  // ----------------------------------------------------------------------
49 
52 
53  public:
54 
55  // ----------------------------------------------------------------------
56  // Public member functions for InputPrmGetPort
57  // ----------------------------------------------------------------------
58 
60  void init();
61 
63  void addCallComp(
64  Fw::PassiveComponentBase* callComp,
65  CompFuncPtr funcPtr
66  );
67 
70  FwPrmIdType id,
71  Fw::ParamBuffer& val
72  );
74 
75  private:
76 
77  // ----------------------------------------------------------------------
78  // Private member functions for InputPrmGetPort
79  // ----------------------------------------------------------------------
80 
81 #if FW_PORT_SERIALIZATION == 1
82 
85  Fw::SerializeStatus invokeSerial(
86  Fw::LinearBufferBase& _buffer
87  );
88 
89 #endif
90 
91  private:
92 
93  // ----------------------------------------------------------------------
94  // Private member variables for InputPrmGetPort
95  // ----------------------------------------------------------------------
96 
98  CompFuncPtr m_func;
99 
100  };
101 
105  public Fw::OutputPortBase
106  {
107 
108  public:
109 
110  // ----------------------------------------------------------------------
111  // Public constructors for OutputPrmGetPort
112  // ----------------------------------------------------------------------
113 
116 
117  public:
118 
119  // ----------------------------------------------------------------------
120  // Public member functions for OutputPrmGetPort
121  // ----------------------------------------------------------------------
122 
124  void init();
125 
127  void addCallPort(
128  InputPrmGetPort* callPort
129  );
130 
134  FwPrmIdType id,
135  Fw::ParamBuffer& val
136  ) const;
138 
139  private:
140 
141  // ----------------------------------------------------------------------
142  // Private member variables for OutputPrmGetPort
143  // ----------------------------------------------------------------------
144 
146  InputPrmGetPort* m_port;
147 
148  };
149 
150 #endif
151 
152 }
153 
154 #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.
Fw::ParamValid invoke(FwPrmIdType id, Fw::ParamBuffer &val) const
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.
Implementation of malloc based allocator.
void init()
Initialization function.