drogon/drogon_ctl/templates/plugin_cc.csp

24 lines
393 B
Plaintext
Raw Normal View History

2019-03-29 15:34:14 +08:00
/**
*
* [[filename]].cc
2019-03-29 15:34:14 +08:00
*
*/
#include "[[filename]].h"
2019-03-29 15:34:14 +08: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 15:34:14 +08:00
{
/// Initialize and start the plugin
}
void [[className]]::shutdown()
2019-03-29 15:34:14 +08:00
{
/// Shutdown the plugin
}