SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
void registerPlugin(PluginAPI &plugin_api) override
Definition
GroupInfoPlugin.cpp:36
SourceXtractor::GroupInfoPlugin::getIdString
std::string getIdString() const override
Definition
GroupInfoPlugin.cpp:51
SourceXtractor::GroupInfoTaskFactory
Produces GroupInfoTask.
Definition
GroupInfoTaskFactory.h:35
SourceXtractor::GroupInfo
Definition
GroupInfo.h:32
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition
PluginAPI.h:40
std::function
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.10.0