mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
* Format Fw and add to CI * Fix include of HPP file instead of H in extern C * Fix format strings
41 lines
1.1 KiB
C++
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
|