// %pacpus:license{ // This file is part of the PACPUS framework distributed under the // CECILL-C License, Version 1.0. // %pacpus:license} #include "@PACPUS_COMPONENT_NAME@.h" #include "@PACPUS_COMPONENT_NAME@Impl.h" #include #include using namespace pacpus; using namespace std; DECLARE_STATIC_LOGGER("pacpus.@PACPUS_COMPONENT_NAME@"); /// Constructs a static component factory static ComponentFactory<@PACPUS_COMPONENT_NAME@> sFactory("@PACPUS_COMPONENT_NAME@"); ////////////////////////////////////////////////////////////////////////// @PACPUS_COMPONENT_NAME@::@PACPUS_COMPONENT_NAME@(QString name) : ComponentBase(name) { LOG_TRACE("constructor(" << name << ")"); mImpl.reset(new Impl(this)); //addParameters() //("parameter-name", value(&mImpl->mParameterVariable)->required(), "parameter description") //("parameter-name", value(&mImpl->mParameterVariable)->default_value(0), "parameter description") //; } @PACPUS_COMPONENT_NAME@::~@PACPUS_COMPONENT_NAME@() { LOG_TRACE("destructor"); } ////////////////////////////////////////////////////////////////////////// void @PACPUS_COMPONENT_NAME@::addInputs() { // must inherit from QObject to use addInput //addInput("input-name", &@PACPUS_COMPONENT_NAME@::processInput); } void @PACPUS_COMPONENT_NAME@::addOutputs() { // must inherit from QObject to use addOutput //addOutput("output-name"); } ////////////////////////////////////////////////////////////////////////// void @PACPUS_COMPONENT_NAME@::startActivity() { mImpl->start(); } void @PACPUS_COMPONENT_NAME@::stopActivity() { mImpl->stop(); } ////////////////////////////////////////////////////////////////////////// ComponentBase::COMPONENT_CONFIGURATION @PACPUS_COMPONENT_NAME@::configureComponent(XmlComponentConfig config) { return ComponentBase::CONFIGURED_OK; } ////////////////////////////////////////////////////////////////////////// //void @PACPUS_COMPONENT_NAME@::processInput(InputType const& input) //{ // mImpl->processInput(input); //}