// %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 #include using namespace pacpus; using namespace std; DECLARE_STATIC_LOGGER("pacpus.base.@PACPUS_COMPONENT_NAME@"); /// Constructs a static component factory static ComponentFactory<@PACPUS_COMPONENT_NAME@> sFactory("@PACPUS_COMPONENT_NAME@"); static const int kDefaultVerboseLevel = 1; ////////////////////////////////////////////////////////////////////////// @PACPUS_COMPONENT_NAME@::@PACPUS_COMPONENT_NAME@(QString name) : ComponentBase(name) { LOG_TRACE("constructor(" << name << ")"); namespace po = boost::program_options; //addParameters() //("parameter-name", po::value(&mParameterVariable)->required(), "parameter description") //("parameter-name", po::value(&mParameterVariable)->default_value(0), "parameter description") //; } @PACPUS_COMPONENT_NAME@::~@PACPUS_COMPONENT_NAME@() { LOG_TRACE("destructor"); } ////////////////////////////////////////////////////////////////////////// void @PACPUS_COMPONENT_NAME@::addInputs() { //addInput("input-name", &@PACPUS_COMPONENT_NAME@::processInput); } void @PACPUS_COMPONENT_NAME@::addOutputs() { //addOutput("output-name"); } ////////////////////////////////////////////////////////////////////////// void @PACPUS_COMPONENT_NAME@::startActivity() { } void @PACPUS_COMPONENT_NAME@::stopActivity() { } ////////////////////////////////////////////////////////////////////////// ComponentBase::COMPONENT_CONFIGURATION @PACPUS_COMPONENT_NAME@::configureComponent(XmlComponentConfig config) { return ComponentBase::CONFIGURED_OK; }