SourceXtractorPlusPlus
0.14
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
SEImplementation
Plugin
CoreThresholdPartition
CoreThresholdPartitionPlugin.h
Go to the documentation of this file.
1
24
#ifndef _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDPLUGIN_H_
25
#define _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDPLUGIN_H_
26
27
#include "
CoreThresholdPartitionTaskFactory.h
"
28
#include "
NCorePixel.h
"
29
#include "
SEFramework/Plugin/Plugin.h
"
30
31
namespace
SourceXtractor {
32
class
CoreThresholdPartitionPlugin
:
public
Plugin
{
33
public
:
34
virtual
~CoreThresholdPartitionPlugin
() =
default
;
35
virtual
void
registerPlugin
(
PluginAPI
& plugin_api) {
36
plugin_api.
getTaskFactoryRegistry
().
registerTaskFactory
<
CoreThresholdPartitionTaskFactory
,
NCorePixel
>();
37
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
NCorePixel
,
int64_t
>(
38
"n_core_pixel"
,
39
[](
const
NCorePixel
& prop){
40
return
prop.getNCorePixel();
41
},
42
"pixel"
,
43
"Number of core pixels used for partitioning"
44
);
45
plugin_api.
getOutputRegistry
().
enableOutput
<
NCorePixel
>(
"NCorePixel"
);
46
}
47
virtual
std::string
getIdString
()
const
{
48
return
"n_core_pixel"
;
49
}
50
private
:
51
};
// end of CoreThresholdPartitionPlugin class
52
}
// namespace SExtractor
53
#endif
/* _SEIMPLEMENTATION_PLUGIN_SNRLEVELPLUGIN_H_ */
NCorePixel.h
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition:
OutputRegistry.h:141
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
Plugin.h
SourceXtractor::CoreThresholdPartitionTaskFactory
Definition:
CoreThresholdPartitionTaskFactory.h:31
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
std::string
STL class.
SourceXtractor::CoreThresholdPartitionPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api)
Definition:
CoreThresholdPartitionPlugin.h:35
std::int64_t
SourceXtractor::CoreThresholdPartitionPlugin
Definition:
CoreThresholdPartitionPlugin.h:32
CoreThresholdPartitionTaskFactory.h
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::CoreThresholdPartitionPlugin::getIdString
virtual std::string getIdString() const
Definition:
CoreThresholdPartitionPlugin.h:47
SourceXtractor::Plugin
Plugins must implement this interface.
Definition:
Plugin.h:38
SourceXtractor::CoreThresholdPartitionPlugin::~CoreThresholdPartitionPlugin
virtual ~CoreThresholdPartitionPlugin()=default
SourceXtractor::NCorePixel
Definition:
NCorePixel.h:44
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
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
Generated by
1.8.5