F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
BufferGetPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title BufferGetPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for BufferGet port
5 // ======================================================================
6 
7 #ifndef Fw_BufferGetPortAc_HPP
8 #define Fw_BufferGetPortAc_HPP
9 
10 #include <cstdio>
11 #include <cstring>
12 
13 #include "Fw/Buffer/Buffer.hpp"
15 #include "Fw/FPrimeBasicTypes.hpp"
18 #include "Fw/Types/String.hpp"
20 
21 namespace Fw {
22 
27  public Fw::InputPortBase
28  {
29 
30  public:
31 
32  // ----------------------------------------------------------------------
33  // Constants
34  // ----------------------------------------------------------------------
35 
36  enum {
39  sizeof(FwSizeType)
40  };
41 
42  public:
43 
44  // ----------------------------------------------------------------------
45  // Types
46  // ----------------------------------------------------------------------
47 
49  typedef Fw::Buffer (*CompFuncPtr)(
50  Fw::PassiveComponentBase* callComp,
51  FwIndexType portNum,
52  FwSizeType size
53  );
54 
55  public:
56 
57  // ----------------------------------------------------------------------
58  // Input Port Member functions
59  // ----------------------------------------------------------------------
60 
63 
65  void init();
66 
68  void addCallComp(
69  Fw::PassiveComponentBase* callComp,
70  CompFuncPtr funcPtr
71  );
72 
75  FwSizeType size
76  );
77 
78  private:
79 
80 #if FW_PORT_SERIALIZATION == 1
81 
83  Fw::SerializeStatus invokeSerial(Fw::LinearBufferBase& _buffer);
84 
85 #endif
86 
87  private:
88 
89  // ----------------------------------------------------------------------
90  // Member variables
91  // ----------------------------------------------------------------------
92 
94  CompFuncPtr m_func;
95 
96  };
97 
102  public Fw::OutputPortBase
103  {
104 
105  public:
106 
107  // ----------------------------------------------------------------------
108  // Output Port Member functions
109  // ----------------------------------------------------------------------
110 
113 
115  void init();
116 
118  void addCallPort(
119  InputBufferGetPort* callPort
120  );
121 
124  FwSizeType size
125  ) const;
126 
127  private:
128 
129  // ----------------------------------------------------------------------
130  // Member variables
131  // ----------------------------------------------------------------------
132 
134  InputBufferGetPort* m_port;
135 
136  };
137 
138 }
139 
140 #endif
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
PlatformSizeType FwSizeType
SerializeStatus
forward declaration for string
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
Fw::Buffer invoke(FwSizeType size)
Invoke a port interface.
Fw::Buffer(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwSizeType size)
The port callback function type.
Fw::Buffer invoke(FwSizeType size) const
Invoke a port interface.
void init()
Initialization function.
InputBufferGetPort()
Constructor.
PlatformIndexType FwIndexType
void init()
Initialization function.
OutputBufferGetPort()
Constructor.
Implementation of malloc based allocator.
The size of the serial representations of the port arguments.