drogon/drogon_ctl/templates/plugin_cc.csp

24 lines
393 B
Plaintext

/**
*
* [[filename]].cc
*
*/
#include "[[filename]].h"
using namespace drogon;
<%c++auto namespaceStr=@@.get<std::string>("namespaceString");
if(!namespaceStr.empty())
$$<<"using namespace "<<namespaceStr<<";\n";
%>
void [[className]]::initAndStart(const Json::Value &config)
{
/// Initialize and start the plugin
}
void [[className]]::shutdown()
{
/// Shutdown the plugin
}