mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Add config plugin class.
This commit is contained in:
committed by
Dennis Klein
parent
bf8ec968e7
commit
cba6d19781
47
fairmq/plugins/config/Config.h
Normal file
47
fairmq/plugins/config/Config.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/********************************************************************************
|
||||
* Copyright (C) 2017 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||
* *
|
||||
* This software is distributed under the terms of the *
|
||||
* GNU Lesser General Public Licence (LGPL) version 3, *
|
||||
* copied verbatim in the file "LICENSE" *
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef FAIR_MQ_PLUGINS_CONFIG
|
||||
#define FAIR_MQ_PLUGINS_CONFIG
|
||||
|
||||
#include <fairmq/Plugin.h>
|
||||
#include <fairmq/Version.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace fair
|
||||
{
|
||||
namespace mq
|
||||
{
|
||||
namespace plugins
|
||||
{
|
||||
|
||||
class Config : public Plugin
|
||||
{
|
||||
public:
|
||||
Config(const std::string& name, const Plugin::Version version, const std::string& maintainer, const std::string& homepage, PluginServices* pluginServices);
|
||||
|
||||
~Config();
|
||||
};
|
||||
|
||||
Plugin::ProgOptions ConfigPluginProgramOptions();
|
||||
|
||||
REGISTER_FAIRMQ_PLUGIN(
|
||||
Config, // Class name
|
||||
config, // Plugin name
|
||||
(Plugin::Version{FAIRMQ_VERSION_MAJOR, FAIRMQ_VERSION_MINOR, FAIRMQ_VERSION_PATCH}),
|
||||
"FairRootGroup <fairroot@gsi.de>",
|
||||
"https://github.com/FairRootGroup/FairRoot",
|
||||
ConfigPluginProgramOptions
|
||||
)
|
||||
|
||||
} /* namespace plugins */
|
||||
} /* namespace mq */
|
||||
} /* namespace fair */
|
||||
|
||||
#endif /* FAIR_MQ_PLUGINS_CONFIG */
|
Reference in New Issue
Block a user