| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title PassThroughRouter.cpp | ||
| 3 | // \author kessler | ||
| 4 | // \brief cpp file for PassThroughRouter component implementation class | ||
| 5 | // ====================================================================== | ||
| 6 | |||
| 7 | #include "Svc/PassThroughRouter/PassThroughRouter.hpp" | ||
| 8 | |||
| 9 | namespace Svc { | ||
| 10 | |||
| 11 | // ---------------------------------------------------------------------- | ||
| 12 | // Component construction and destruction | ||
| 13 | // ---------------------------------------------------------------------- | ||
| 14 | |||
| 15 | ✗ | PassThroughRouter::PassThroughRouter(const char* const compName) : PassThroughRouterComponentBase(compName) {} | |
| 16 | |||
| 17 | ✗ | PassThroughRouter::~PassThroughRouter() {} | |
| 18 | |||
| 19 | // ---------------------------------------------------------------------- | ||
| 20 | // Handler implementations for typed input ports | ||
| 21 | // ---------------------------------------------------------------------- | ||
| 22 | |||
| 23 | ✗ | void PassThroughRouter::allPacketsReturnIn_handler(FwIndexType portNum, Fw::Buffer& fwBuffer) { | |
| 24 | ✗ | ComCfg::FrameContext context = {}; // default context used to satisfy dataReturnOut port interface | |
| 25 | ✗ | this->dataReturnOut_out(0, fwBuffer, context); | |
| 26 | ✗ | } | |
| 27 | |||
| 28 | ✗ | void PassThroughRouter::dataIn_handler(FwIndexType portNum, | |
| 29 | Fw::Buffer& packetBuffer, | ||
| 30 | const ComCfg::FrameContext& context) { | ||
| 31 | // allPacketsOut must always be connected. Users needing a null-router should write one explicitly. | ||
| 32 | ✗ | this->allPacketsOut_out(0, packetBuffer); | |
| 33 | ✗ | } | |
| 34 | |||
| 35 | } // namespace Svc | ||
| 36 |