mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 13:54:34 -06:00
33 lines
864 B
C++
33 lines
864 B
C++
/*
|
|
* TestCommand1Impl.cpp
|
|
*
|
|
* Created on: Mar 28, 2014
|
|
* Author: tcanham
|
|
*/
|
|
|
|
#include <Autocoders/Python/test/serialize_user/ExampleComponentImpl.hpp>
|
|
#include <Fw/Types/String.hpp>
|
|
#include <cstdio>
|
|
|
|
#if FW_OBJECT_NAMES == 1
|
|
ExampleComponentImpl::ExampleComponentImpl(const char* name) : ExampleComponents::ExampleComponentComponentBase(name)
|
|
#else
|
|
ExampleComponentImpl::ExampleComponentImpl() : ExampleComponents::ExampleComponentComponentBase()
|
|
#endif
|
|
{
|
|
}
|
|
|
|
void ExampleComponentImpl::init(NATIVE_INT_TYPE queueDepth) {
|
|
ExampleComponents::ExampleComponentComponentBase::init(queueDepth);
|
|
}
|
|
|
|
ExampleComponentImpl::~ExampleComponentImpl() {
|
|
}
|
|
|
|
void ExampleComponentImpl::exampleInput_handler(NATIVE_INT_TYPE portNum, I32 arg1, ANameSpace::UserSerializer arg2) {
|
|
|
|
Fw::String str;
|
|
arg2.toString(str);
|
|
printf("ARG: %s\n",str.toChar());
|
|
}
|