fpp/compiler/tools/fpp-to-cpp/test/component/test-impl/ActiveParamsTester.ref.cpp
2024-04-09 11:09:39 -07:00

85 lines
2.0 KiB
C++

// ======================================================================
// \title ActiveParamsTester.cpp
// \author [user name]
// \brief cpp file for ActiveParams component test harness implementation class
// ======================================================================
#include "ActiveParamsTester.hpp"
// ----------------------------------------------------------------------
// Construction and destruction
// ----------------------------------------------------------------------
ActiveParamsTester ::
ActiveParamsTester() :
ActiveParamsGTestBase("ActiveParamsTester", ActiveParamsTester::MAX_HISTORY_SIZE),
component("ActiveParams")
{
this->initComponents();
this->connectPorts();
}
ActiveParamsTester ::
~ActiveParamsTester()
{
}
// ----------------------------------------------------------------------
// Tests
// ----------------------------------------------------------------------
void ActiveParamsTester ::
toDo()
{
// TODO
}
// ----------------------------------------------------------------------
// Handlers for typed from ports
// ----------------------------------------------------------------------
void ActiveParamsTester ::
from_noArgsOut_handler(FwIndexType portNum)
{
this->pushFromPortEntry_noArgsOut();
}
U32 ActiveParamsTester ::
from_noArgsReturnOut_handler(FwIndexType portNum)
{
this->pushFromPortEntry_noArgsReturnOut();
// TODO: Return a value
}
void ActiveParamsTester ::
from_typedOut_handler(
FwIndexType portNum,
U32 u32,
F32 f32,
bool b,
const Ports::TypedPortStrings::StringSize80& str1,
const E& e,
const A& a,
const S& s
)
{
this->pushFromPortEntry_typedOut(u32, f32, b, str1, e, a, s);
}
F32 ActiveParamsTester ::
from_typedReturnOut_handler(
FwIndexType portNum,
U32 u32,
F32 f32,
bool b,
const Ports::TypedReturnPortStrings::StringSize80& str2,
const E& e,
const A& a,
const S& s
)
{
this->pushFromPortEntry_typedReturnOut(u32, f32, b, str2, e, a, s);
// TODO: Return a value
}