F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InputSerializePort.hpp
Go to the documentation of this file.
1#ifndef FW_INPUT_SERIALIZE_PORT_HPP
2#define FW_INPUT_SERIALIZE_PORT_HPP
3
4#include <FpConfig.hpp>
5
6#if FW_PORT_SERIALIZATION == 1
7
9
10namespace Fw {
11
12 class InputSerializePort : public InputPortBase {
13 public:
14 InputSerializePort();
15 virtual ~InputSerializePort();
16
17 void init();
18
19 SerializeStatus invokeSerial(SerializeBufferBase &buffer); // !< invoke the port with a serialized version of the call
20
21 typedef void (*CompFuncPtr)(Fw::PassiveComponentBase* callComp, NATIVE_INT_TYPE portNum, SerializeBufferBase &arg);
22 void addCallComp(Fw::PassiveComponentBase* callComp, CompFuncPtr funcPtr);
23
24 protected:
25
26#if FW_OBJECT_TO_STRING == 1
27 virtual void toString(char* str, NATIVE_INT_TYPE size);
28#endif
29
30 private:
31 CompFuncPtr m_func;
32 InputSerializePort(InputSerializePort*);
33 InputSerializePort(InputSerializePort&);
34 InputSerializePort& operator=(InputSerializePort&);
35 };
36
37}
38
39#endif // FW_INPUT_SERIALIZE_PORT_HPP
40
41#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
C++-compatible configuration header for fprime configuration.
Definition Buffer.cpp:21
SerializeStatus
forward declaration for string