F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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(
16  SerializeBufferBase& buffer); // !< invoke the port with a serialized version of the call
17 #endif
18 
19  protected:
20  OutputPortBase(); // constructor
21  virtual ~OutputPortBase(); // destructor
22  void init() override;
23 
24 #if FW_OBJECT_TO_STRING == 1
25  const char* getToStringFormatString() override;
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  // Disable constructors
35  OutputPortBase& operator=(OutputPortBase&);
36 };
37 
38 } // namespace Fw
39 
40 #endif
SerializeStatus
forward declaration for string
void init() override
Declarations for Fw::ObjBase and Fw::ObjRegistry.