modify the output format of drogon_ctl

This commit is contained in:
an-tao 2018-05-30 18:22:46 +08:00
parent ff05960bf9
commit 7b7a426f85
1 changed files with 2 additions and 2 deletions

View File

@ -149,8 +149,8 @@ void create_view::newViewHeaderFile(std::ofstream &file,const std::string &class
file<<"#include <drogon/HttpView.h>\n";
file<<"using namespace drogon;\n";
file<<"class "<<className<<":public HttpView<"<<className<<">\n";
file<<"{\npublic:\n\t"<<className<<"(){};\n\tvirtual ~"<<className<<"(){};\n\tprotected:\n\t\
virtual HttpResponse* genHttpResponse(const HttpViewData&)override;\n};";
file<<"{\npublic:\n\t"<<className<<"(){};\n\tvirtual ~"<<className<<"(){};\nprotected:\n\t"
"virtual HttpResponse* genHttpResponse(const HttpViewData&) override;\n};";
}
void create_view::newViewSourceFile(std::ofstream &file,const std::string &className,std::ifstream &infile)