FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
xplugin/test/testplugin_a/plugin_02.cpp at main · QuantStack/xplugin · GitHub
QuantStack
xplugin
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
xplugin
/
test
/
testplugin_a
/
plugin_02.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (23 loc) · 629 Bytes
Breadcrumbs
xplugin
/
test
/
testplugin_a
/
plugin_02.cpp
Copy path
File metadata and controls
28 lines (23 loc) · 629 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
the base-class with the plugin-interface
#
include
<
plugin_base.hpp
>
//
the base factory for the plugin
#
include
<
xplugin/xfactory.hpp
>
class
XPLUGIN_API
Plugin02 : public plugin::PluginBase
{
public:
Plugin02
(
int
a, std::string b)
: m_a(a),
m_b
(b)
{
}
std::string
name
()
override
{
return
"
Plugin02
"
;
}
private:
int
m_a;
std::string m_b;
};
template
class
XPLUGIN_API
xp::xfactory<Plugin02, plugin::PluginBase,
int
, std::string>;
using
factory_type = xp::xfactory<Plugin02, plugin::PluginBase,
int
, std::string>;
XPLUGIN_CREATE_XPLUGIN_FACTORY
(factory_type);
Back
|
FazBrowse Home
|
New Git URL