F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
InputSerializePort.hpp
Go to the documentation of this file.
1 #ifndef FW_INPUT_SERIALIZE_PORT_HPP
2 #define FW_INPUT_SERIALIZE_PORT_HPP
3 
5 
6 #if FW_PORT_SERIALIZATION == 1
7 
9 
10 namespace Fw {
11 
12 class InputSerializePort final : public InputPortBase {
13  public:
14  InputSerializePort();
15  virtual ~InputSerializePort();
16 
17  void init() override;
18 
19  SerializeStatus invokeSerial(
20  SerializeBufferBase& buffer) override; // !< invoke the port with a serialized version of the call
21 
22  typedef void (*CompFuncPtr)(Fw::PassiveComponentBase* callComp,
23  FwIndexType portNum,
24  SerializeBufferBase& arg);
25  void addCallComp(Fw::PassiveComponentBase* callComp, CompFuncPtr funcPtr);
26 
27  protected:
28 #if FW_OBJECT_TO_STRING == 1
29  const char* getToStringFormatString() override;
30 #endif
31 
32  private:
33  CompFuncPtr m_func;
34  InputSerializePort(InputSerializePort*);
35  InputSerializePort(InputSerializePort&);
36  InputSerializePort& operator=(InputSerializePort&);
37 };
38 
39 } // namespace Fw
40 
41 #endif // FW_INPUT_SERIALIZE_PORT_HPP
42 
43 #endif
SerializeStatus
forward declaration for string
void init()
Initialize the OS Abstraction Layer (OSAL)
Definition: Os.cpp:15
PlatformIndexType FwIndexType