SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEImplementation
src
lib
Plugin
GroupInfo
GroupInfoPlugin.cpp
Go to the documentation of this file.
1
17
/*
18
* GroupInfoPlugin.cpp
19
*
20
* Created on: 2019 M01 30
21
* Author: mschefer
22
*/
23
24
25
#include "
SEFramework/Plugin/StaticPlugin.h
"
26
27
#include "
SEImplementation/Plugin/GroupInfo/GroupInfo.h
"
28
#include "
SEImplementation/Plugin/GroupInfo/GroupInfoTaskFactory.h
"
29
30
#include "
SEImplementation/Plugin/GroupInfo/GroupInfoPlugin.h
"
31
32
namespace
SourceXtractor
{
33
34
static
StaticPlugin<GroupInfoPlugin>
group_info_plugin
;
35
36
void
GroupInfoPlugin::registerPlugin
(
PluginAPI
& plugin_api) {
37
plugin_api.
getTaskFactoryRegistry
().
registerTaskFactory
<
GroupInfoTaskFactory
,
GroupInfo
>();
38
39
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
GroupInfo
,
int64_t
>(
40
"group_id"
,
41
[](
const
GroupInfo
& prop){
42
return
prop.getGroupId();
43
},
44
""
,
45
"Running group number"
46
);
47
48
plugin_api.
getOutputRegistry
().
enableOutput
<
GroupInfo
>(
"GroupInfo"
);
49
}
50
51
std::string
GroupInfoPlugin::getIdString
()
const
{
52
return
"GroupInfo"
;
53
}
54
55
}
56
GroupInfoPlugin.h
GroupInfoTaskFactory.h
GroupInfo.h
StaticPlugin.h
std::string
SourceXtractor::GroupInfoPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition:
GroupInfoPlugin.cpp:36
SourceXtractor::GroupInfoPlugin::getIdString
virtual std::string getIdString() const override
Definition:
GroupInfoPlugin.cpp:51
SourceXtractor::GroupInfoTaskFactory
Produces GroupInfoTask.
Definition:
GroupInfoTaskFactory.h:35
SourceXtractor::GroupInfo
Definition:
GroupInfo.h:32
SourceXtractor::OutputRegistry::registerColumnConverter
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
Definition:
OutputRegistry.h:46
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition:
OutputRegistry.h:141
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
std::int64_t
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::group_info_plugin
static StaticPlugin< GroupInfoPlugin > group_info_plugin
Definition:
GroupInfoPlugin.cpp:34
Generated by
1.9.1