SourceXtractorPlusPlus  0.11
Please provide a description of the project.
StaticPlugin.h
Go to the documentation of this file.
1 
17 /*
18  * StaticPlugin.h
19  *
20  * Created on: Aug 5, 2016
21  * Author: mschefer
22  */
23 
24 #ifndef _SEFRAMEWORK_PLUGIN_STATICPLUGIN_H_
25 #define _SEFRAMEWORK_PLUGIN_STATICPLUGIN_H_
26 
29 
30 namespace SourceXtractor {
31 
37 template<typename PluginType>
38 class StaticPlugin {
39 public:
41  static_assert(std::is_base_of<Plugin, PluginType>::value, "PluginType must inherit from SourceXtractor::Plugin");
42  PluginManager::registerStaticPlugin<PluginType>();
43  }
44 };
45 
46 }
47 
48 
49 
50 #endif /* _SEFRAMEWORK_PLUGIN_STATICPLUGIN_H_ */
Plugin.h
SourceXtractor
Definition: Aperture.h:30
PluginManager.h
SourceXtractor::StaticPlugin::StaticPlugin
StaticPlugin()
Definition: StaticPlugin.h:40
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
std::is_base_of