| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/QuantStack/xplugin/main/test/testplugin_a/plugin_02.cpp | [Back] [Original] |
// the base-class with the plugin-interface
#include
// the base factory for the plugin
#include
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;
using factory_type = xp::xfactory;
XPLUGIN_CREATE_XPLUGIN_FACTORY(factory_type);
| Web Proxy Viewer | New URL | Original Page |