Update drogon_ctl

This commit is contained in:
antao 2018-09-07 19:03:31 +08:00
parent f3e74a05de
commit 1cf7ef84b2

View File

@ -180,14 +180,23 @@ void create_view::newViewHeaderFile(std::ofstream &file,const std::string &class
void create_view::newViewSourceFile(std::ofstream &file,const std::string &className,std::ifstream &infile)
{
file << "//this file is generated by program automatically,don't modify it!\n";
file << "//this file is generated by program(drogon_ctl) automatically,don't modify it!\n";
file << "#include \"" << className << ".h\"\n";
file <<"#include <drogon/config.h>\n";
file <<"#include <string>\n";
file <<"#include <sstream>\n";
file <<"#include <map>\n";
file <<"#include <vector>\n";
file <<"#include <set>\n";
file <<"#include <iostream>\n";
file <<"#include <unordered_map>\n";
file <<"#include <unordered_set>\n";
file <<"#include <algorithm>\n";
file <<"#include <list>\n";
file <<"#include <deque>\n";
file <<"#include <queue>\n";
file <<"using namespace std;\n";
// file <<"void __attribute__((constructor)) startup()\n";
// file <<"{std::cout<<\"dynamic lib start to load!\"<<std::endl;}\n";