Skip to content

Source · fairmq/

Plugin.cxxsource

Described in Plugins and control, custom-controller: control from code, Write a plugin, Overview.

fairmq/Plugin.cxx32 lines · C++GitHub ↗
1/********************************************************************************2 * Copyright (C) 2017-2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH  *3 *                                                                              *4 *              This software is distributed under the terms of the             *5 *              GNU Lesser General Public Licence (LGPL) version 3,             *6 *                  copied verbatim in the file "LICENSE"                       *7 ********************************************************************************/8 9#include <fairmq/Plugin.h>10#include <fairlogger/Logger.h>11#include <utility>12 13using namespace std;14 15fair::mq::Plugin::Plugin(string name,16                         Version version,17                         string maintainer,18                         string homepage,19                         PluginServices* pluginServices)20    : fkName(std::move(name))21    , fkVersion(version)22    , fkMaintainer(std::move(maintainer))23    , fkHomepage(std::move(homepage))24    , fPluginServices(pluginServices)25{26    LOG(debug) << "Loaded plugin: " << *this;27}28 29fair::mq::Plugin::~Plugin()30{31    LOG(debug) << "Unloaded plugin: " << *this;32}