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

98 lines
2.4 KiB
C++

// ======================================================================
// \title QueuedSerialTester.cpp
// \author [user name]
// \brief cpp file for QueuedSerial component test harness implementation class
// ======================================================================
#include "QueuedSerialTester.hpp"
// ----------------------------------------------------------------------
// Construction and destruction
// ----------------------------------------------------------------------
QueuedSerialTester ::
QueuedSerialTester() :
QueuedSerialGTestBase("QueuedSerialTester", QueuedSerialTester::MAX_HISTORY_SIZE),
component("QueuedSerial")
{
this->initComponents();
this->connectPorts();
}
QueuedSerialTester ::
~QueuedSerialTester()
{
}
// ----------------------------------------------------------------------
// Tests
// ----------------------------------------------------------------------
void QueuedSerialTester ::
toDo()
{
// TODO
}
// ----------------------------------------------------------------------
// Handlers for typed from ports
// ----------------------------------------------------------------------
void QueuedSerialTester ::
from_noArgsOut_handler(FwIndexType portNum)
{
this->pushFromPortEntry_noArgsOut();
}
U32 QueuedSerialTester ::
from_noArgsReturnOut_handler(FwIndexType portNum)
{
this->pushFromPortEntry_noArgsReturnOut();
// TODO: Return a value
}
void QueuedSerialTester ::
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 QueuedSerialTester ::
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
}
// ----------------------------------------------------------------------
// Handlers for serial from ports
// ----------------------------------------------------------------------
void QueuedSerialTester ::
from_serialOut_handler(
FwIndexType portNum,
Fw::SerializeBufferBase& buffer
)
{
// TODO
}