fprime/Fw/Port/OutputPortBase.hpp
Thomas Boyer-Chammard ab58cf18fb
Format Fw and add to CI (#3976)
* Format Fw and add to CI

* Fix include of HPP file instead of H in extern C

* Fix format strings
2025-08-04 12:56:02 -07:00

41 lines
1.1 KiB
C++

#ifndef FW_OUTPUT_PORT_BASE_HPP
#define FW_OUTPUT_PORT_BASE_HPP
#include <Fw/FPrimeBasicTypes.hpp>
#include <Fw/Obj/ObjBase.hpp>
#include <Fw/Port/InputPortBase.hpp>
#include <Fw/Types/Serializable.hpp>
namespace Fw {
class OutputPortBase : public PortBase {
public:
#if FW_PORT_SERIALIZATION == 1
void registerSerialPort(InputPortBase* port); // !< register a port for serialized calls
SerializeStatus invokeSerial(
SerializeBufferBase& buffer); // !< invoke the port with a serialized version of the call
#endif
protected:
OutputPortBase(); // constructor
virtual ~OutputPortBase(); // destructor
void init() override;
#if FW_OBJECT_TO_STRING == 1
const char* getToStringFormatString() override; //!< Get format string for toString call
#endif
#if FW_PORT_SERIALIZATION == 1
Fw::InputPortBase* m_serPort; // !< pointer to port for serialized calls
#endif
private:
// Disable constructors
OutputPortBase(OutputPortBase*);
OutputPortBase(OutputPortBase&);
OutputPortBase& operator=(OutputPortBase&);
};
} // namespace Fw
#endif