// %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 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 << ")"); } ////////////////////////////////////////////////////////////////////////// @PACPUS_COMPONENT_NAME@::~@PACPUS_COMPONENT_NAME@() { LOG_TRACE("destructor"); } ////////////////////////////////////////////////////////////////////////// void @PACPUS_COMPONENT_NAME@::startActivity() { } ////////////////////////////////////////////////////////////////////////// void @PACPUS_COMPONENT_NAME@::stopActivity() { } ////////////////////////////////////////////////////////////////////////// ComponentBase::COMPONENT_CONFIGURATION @PACPUS_COMPONENT_NAME@::configureComponent(XmlComponentConfig config) { recording = config.getIntProperty("verbose", kDefaultVerboseLevel); recording = config.getBoolProperty("recording"); return ComponentBase::CONFIGURED_OK; }