drogon/drogon_ctl/templates/plugin_cc.csp

24 lines
393 B
Plaintext
Raw Normal View History

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