F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
OutputPortBase.cpp
Go to the documentation of this file.
1 #include <FpConfig.hpp>
3 #include <Os/Console.hpp>
4 #include <cstdio>
5 #include <Fw/Types/Assert.hpp>
6 
7 
8 namespace Fw {
9 
11 #if FW_PORT_SERIALIZATION == 1
12  ,m_serPort(nullptr)
13 #endif
14  {
15 
16  }
17 
19  }
20 
23  }
24 #if FW_PORT_SERIALIZATION == 1
25  void OutputPortBase::registerSerialPort(InputPortBase* port) {
26  FW_ASSERT(port);
27  this->m_connObj = port;
28  this->m_serPort = port;
29  }
30 
31  SerializeStatus OutputPortBase::invokeSerial(SerializeBufferBase &buffer) {
32  FW_ASSERT(this->m_serPort);
33  return this->m_serPort->invokeSerial(buffer);
34  }
35 #endif
36 
37 #if FW_OBJECT_TO_STRING == 1
38  const char* OutputPortBase::getToStringFormatString() {
39  return "Output Port: %s %s->(%s)";
40  }
41 #endif
42 
43 
44 }
45 
virtual void init()
Definition: PortBase.cpp:37
SerializeStatus
forward declaration for string
void init() override
C++-compatible configuration header for fprime configuration.
#define FW_PORT_SERIALIZATION
for multi-note systems)
Definition: FpConfig.h:204
Fw::ObjBase * m_connObj
Definition: PortBase.hpp:33
#define FW_ASSERT(...)
Definition: Assert.hpp:14