// %pacpus:license{ // This file is part of the PACPUS framework distributed under the // CECILL-C License, Version 1.0. // %pacpus:license} #include "${}.h" #include using namespace pacpus; using namespace std; DECLARE_STATIC_LOGGER("pacpus.base.${}"); /// Constructs a static component factory static ComponentFactory<${}> sFactory("${}"); static const int kDefaultVerboseLevel = 1; ////////////////////////////////////////////////////////////////////////// ${}::${}(QString name) : ComponentBase(name) { LOG_TRACE("constructor(" << name << ")"); } ////////////////////////////////////////////////////////////////////////// ${}::~${}() { LOG_TRACE("destructor"); } ////////////////////////////////////////////////////////////////////////// void ${}::startActivity() { } ////////////////////////////////////////////////////////////////////////// void ${}::stopActivity() { } ////////////////////////////////////////////////////////////////////////// ComponentBase::COMPONENT_CONFIGURATION ${}::configureComponent(XmlComponentConfig config) { recording = config.getIntProperty("verbose", kDefaultVerboseLevel); recording = config.getBoolProperty("recording"); return ComponentBase::CONFIGURED_OK; }