mirror of
https://github.com/nasa/fprime.git
synced 2025-12-12 07:43:50 -06:00
* Fix autogeneration of header guards and tests * Updated namespace generation to support nested namespaces * Update namespace generation for arrays and enums to support C++11 * Made UT of nested namespaces for enum and arrays * Fix of wrong path changed locally * #1734: Fix Python formatting * #1734: Fix Python formatting --------- Co-authored-by: Simone Morettini <simone.morettini@redwirespaceeurope.com>
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
#include <Autocoders/Python/test/array_xml/ExampleArrayImpl.hpp>
|
|
#include <FpConfig.hpp>
|
|
#include <Fw/Types/String.hpp>
|
|
#include <iostream>
|
|
#include <cstdio>
|
|
|
|
using namespace std;
|
|
|
|
namespace Example {
|
|
|
|
ExampleArrayImpl::ExampleArrayImpl(const char* compName) : Component1ComponentBase(compName) {
|
|
}
|
|
|
|
ExampleArrayImpl::~ExampleArrayImpl() {
|
|
|
|
}
|
|
|
|
void ExampleArrayImpl::init(NATIVE_INT_TYPE queueDepth) {
|
|
Component1ComponentBase::init(queueDepth);
|
|
}
|
|
|
|
void ExampleArrayImpl::ExArrayIn_handler(NATIVE_INT_TYPE portNum, const Example::SubNameSpace::ArrayType& array1, const Example::ArrSerial& serial1) {
|
|
Fw::String s;
|
|
array1.toString(s);
|
|
|
|
printf("%s Invoked ExArrayIn_handler();\n%s", FW_OPTIONAL_NAME(this->getObjName()), s.toChar());
|
|
this->ArrayOut_out(0, array1, serial1);
|
|
}
|
|
|
|
void ExampleArrayImpl::ArrayIn_handler(NATIVE_INT_TYPE portNum, const Example::SubNameSpace::ArrayType& array1, const Example::ArrSerial& serial1) {
|
|
Fw::String s;
|
|
array1.toString(s);
|
|
|
|
printf("%s Invoked ArrayIn_handler(%d);\n%s", FW_OPTIONAL_NAME(this->getObjName()), portNum, s.toChar());
|
|
}
|
|
};
|