F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
PassThroughRouter.cpp
Go to the documentation of this file.
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
Svc::PassThroughRouter::PassThroughRouter
PassThroughRouter(const char *const compName)
Construct PassThroughRouter object.
Definition:
PassThroughRouter.cpp:15
PassThroughRouter.hpp
Svc::PassThroughRouterComponentBase::allPacketsOut_out
void allPacketsOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port allPacketsOut.
Definition:
PassThroughRouterComponentAc.cpp:505
Svc::PassThroughRouter::~PassThroughRouter
~PassThroughRouter()
Destroy PassThroughRouter object.
Definition:
PassThroughRouter.cpp:17
Svc::PassThroughRouterComponentBase::dataReturnOut_out
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
Definition:
PassThroughRouterComponentAc.cpp:525
FwIndexType
PlatformIndexType FwIndexType
Definition:
FwIndexTypeAliasAc.h:15
ComCfg::FrameContext
Type used to pass context info between components during framing/deframing.
Definition:
FrameContextSerializableAc.hpp:20
Svc
RateGroupDivider component implementation.
Definition:
ActiveRateGroupCfg.hpp:18
Svc::PassThroughRouterComponentBase
Auto-generated base for PassThroughRouter component.
Definition:
PassThroughRouterComponentAc.hpp:28
Fw::Buffer
Definition:
Buffer.hpp:47
Svc
PassThroughRouter
PassThroughRouter.cpp
Generated by
1.8.14