F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
OutputPortBase.hpp
Go to the documentation of this file.
1 #ifndef FW_OUTPUT_PORT_BASE_HPP
2 #define FW_OUTPUT_PORT_BASE_HPP
3 
4 #include <FpConfig.hpp>
5 #include <Fw/Obj/ObjBase.hpp>
8 
9 namespace Fw {
10 
11  class OutputPortBase : public PortBase {
12  public:
13 #if FW_PORT_SERIALIZATION == 1
14  void registerSerialPort(InputPortBase* port); // !< register a port for serialized calls
15  SerializeStatus invokeSerial(SerializeBufferBase &buffer); // !< invoke the port with a serialized version of the call
16 #endif
17 
18  protected:
19 
20  OutputPortBase(); // constructor
21  virtual ~OutputPortBase(); // destructor
22  virtual void init();
23 
24 #if FW_OBJECT_TO_STRING == 1
25  virtual void toString(char* str, NATIVE_INT_TYPE size);
26 #endif
27 
28 #if FW_PORT_SERIALIZATION == 1
29  Fw::InputPortBase* m_serPort; // !< pointer to port for serialized calls
30 #endif
31  private:
32 
33  // Disable constructors
36  OutputPortBase& operator=(OutputPortBase&);
37  };
38 
39 }
40 
41 #endif
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:55
C++-compatible configuration header for fprime configuration.
Declarations for Fw::ObjBase and Fw::ObjRegistry.
virtual void init()
SerializeStatus
forward declaration for string