F´ Flight Software - C/C++ Documentation  NASA-v1.5.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 
10 namespace Fw {
11 
12  class InputSerializePort : public InputPortBase {
13  public:
14  InputSerializePort();
15  virtual ~InputSerializePort();
16 
17  void init(void);
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
InputPortBase.hpp
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition: Serializable.hpp:14
Fw::PassiveComponentBase
Definition: PassiveComponentBase.hpp:10
FpConfig.hpp
ISF configuration file.
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition: BasicTypes.hpp:29
Fw
Definition: BufferGetPortAc.cpp:6