F´ Flight Software - C/C++ Documentation
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 
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(LinearBufferBase& buffer); // !< invoke the port with a serialized version of the call
16 #endif
17 
18  protected:
19  OutputPortBase(); // constructor
20  virtual ~OutputPortBase(); // destructor
21  void init() override;
22 
23 #if FW_OBJECT_TO_STRING == 1
24  const char* getToStringFormatString() override;
25 #endif
26 
27 #if FW_PORT_SERIALIZATION == 1
28  Fw::InputPortBase* m_serPort; // !< pointer to port for serialized calls
29 #endif
30  private:
31  // Disable constructors
34  OutputPortBase& operator=(OutputPortBase&);
35 };
36 
37 } // namespace Fw
38 
39 #endif
SerializeStatus
forward declaration for string
void init() override
Declarations for Fw::ObjBase and Fw::ObjRegistry.
Implementation of malloc based allocator.