SourceXtractorPlusPlus
0.10
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
SEFramework
SEFramework
Plugin
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
27
#include "
SEFramework/Plugin/Plugin.h
"
28
#include "
SEFramework/Plugin/PluginManager.h
"
29
30
namespace
SourceXtractor {
31
37
template
<
typename
PluginType>
38
class
StaticPlugin
{
39
public
:
40
StaticPlugin
() {
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::StaticPlugin::StaticPlugin
StaticPlugin()
Definition:
StaticPlugin.h:40
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
PluginManager.h
std::is_base_of
Generated by
1.8.5