mirror of
https://github.com/nasa/fprime.git
synced 2025-12-12 07:43:50 -06:00
30 lines
974 B
C++
30 lines
974 B
C++
#include <Autocoders/Python/test/array_xml/ExampleArrayImpl.hpp>
|
|
#include <Fw/Types/BasicTypes.hpp>
|
|
#include <iostream>
|
|
#include <stdio.h>
|
|
|
|
using namespace std;
|
|
|
|
namespace Example {
|
|
|
|
ExampleArrayImpl::ExampleArrayImpl(const char* compName) : Component1ComponentBase(compName) {
|
|
}
|
|
|
|
ExampleArrayImpl::~ExampleArrayImpl(void) {
|
|
|
|
}
|
|
|
|
void ExampleArrayImpl::init(NATIVE_INT_TYPE queueDepth) {
|
|
Component1ComponentBase::init(queueDepth);
|
|
}
|
|
|
|
void ExampleArrayImpl::ExArrayIn_handler(NATIVE_INT_TYPE portNum, ArrayNS::ArrayType array1, Example::Serial1 serial1) {
|
|
printf("%s Invoked ExArrayIn_handler();\n%s", this->getObjName(), this->toString());
|
|
this->ArrayOut_out(0, array1, serial1);
|
|
}
|
|
|
|
void ExampleArrayImpl::ArrayIn_handler(NATIVE_INT_TYPE portNum, ArrayNS::ArrayType array1, Example::Serial1 serial1) {
|
|
printf("%s Invoked ArrayIn_handler();\n%s", this->getObjName(), portNum, this->toString());
|
|
}
|
|
};
|