F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
DpGetPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title DpGetPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for DpGet port
5 // ======================================================================
6 
7 #ifndef Fw_DpGetPortAc_HPP
8 #define Fw_DpGetPortAc_HPP
9 
10 #include "Fw/Buffer/Buffer.hpp"
11 #include "Fw/FPrimeBasicTypes.hpp"
15 #if !FW_DIRECT_PORT_CALLS
19 #endif
20 
21 namespace Fw {
22 
23 #if !FW_DIRECT_PORT_CALLS
24 
33  public Fw::InputPortBase
34  {
35 
36  public:
37 
38  // ----------------------------------------------------------------------
39  // Public types for InputDpGetPort
40  // ----------------------------------------------------------------------
41 
44  Fw::PassiveComponentBase* callComp,
45  FwIndexType portNum,
46  FwDpIdType id,
47  FwSizeType dataSize,
48  Fw::Buffer& buffer
49  );
50 
51  public:
52 
53  // ----------------------------------------------------------------------
54  // Public constructors for InputDpGetPort
55  // ----------------------------------------------------------------------
56 
59 
60  public:
61 
62  // ----------------------------------------------------------------------
63  // Public member functions for InputDpGetPort
64  // ----------------------------------------------------------------------
65 
67  void init();
68 
70  void addCallComp(
71  Fw::PassiveComponentBase* callComp,
72  CompFuncPtr funcPtr
73  );
74 
77  FwDpIdType id,
78  FwSizeType dataSize,
79  Fw::Buffer& buffer
80  );
81 
82  private:
83 
84  // ----------------------------------------------------------------------
85  // Private member functions for InputDpGetPort
86  // ----------------------------------------------------------------------
87 
88 #if FW_PORT_SERIALIZATION == 1
89 
92  Fw::SerializeStatus invokeSerial(
93  Fw::LinearBufferBase& _buffer
94  );
95 
96 #endif
97 
98  private:
99 
100  // ----------------------------------------------------------------------
101  // Private member variables for InputDpGetPort
102  // ----------------------------------------------------------------------
103 
105  CompFuncPtr m_func;
106 
107  };
108 
117  public Fw::OutputPortBase
118  {
119 
120  public:
121 
122  // ----------------------------------------------------------------------
123  // Public constructors for OutputDpGetPort
124  // ----------------------------------------------------------------------
125 
127  OutputDpGetPort();
128 
129  public:
130 
131  // ----------------------------------------------------------------------
132  // Public member functions for OutputDpGetPort
133  // ----------------------------------------------------------------------
134 
136  void init();
137 
139  void addCallPort(
140  InputDpGetPort* callPort
141  );
142 
146  FwDpIdType id,
147  FwSizeType dataSize,
148  Fw::Buffer& buffer
149  ) const;
150 
151  private:
152 
153  // ----------------------------------------------------------------------
154  // Private member variables for OutputDpGetPort
155  // ----------------------------------------------------------------------
156 
158  InputDpGetPort* m_port;
159 
160  };
161 
162 #endif
163 
164 }
165 
166 #endif
PlatformSizeType FwSizeType
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Definition: DpGetPortAc.cpp:37
Fw::Success(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwDpIdType id, FwSizeType dataSize, Fw::Buffer &buffer)
The port callback function type.
Definition: DpGetPortAc.hpp:43
Fw::Success invoke(FwDpIdType id, FwSizeType dataSize, Fw::Buffer &buffer)
Invoke a port interface.
Definition: DpGetPortAc.cpp:51
SerializeStatus
forward declaration for string
InputDpGetPort()
Constructor.
Definition: DpGetPortAc.cpp:19
OutputDpGetPort()
Constructor.
Definition: DpGetPortAc.cpp:90
FwIdType FwDpIdType
The type of a data product identifier.
Fw::Success invoke(FwDpIdType id, FwSizeType dataSize, Fw::Buffer &buffer) const
PlatformIndexType FwIndexType
void addCallPort(InputDpGetPort *callPort)
Register an input port.
Implementation of malloc based allocator.
void init()
Initialization function.
Success/Failure.
void init()
Initialization function.
Definition: DpGetPortAc.cpp:31