| 78 | } |
| 79 | |
| 80 | static bool create_proc(file_tmpl& tmpl) |
| 81 | { |
| 82 | string file(tmpl.get_project_name()); |
| 83 | file << ".cf"; |
| 84 | if (tmpl.copy_and_replace("master_proc.cf", file.c_str()) == false) { |
| 85 | return false; |
| 86 | } |
| 87 | |
| 88 | const char* name = "master_proc"; |
| 89 | const FILE_FROM_TO tab[] = { |
| 90 | { "main_proc.cpp", "main.cpp" }, |
| 91 | { "master_proc.h", "master_service.h" }, |
| 92 | { "master_proc.cpp", "master_service.cpp" }, |
| 93 | { "http_service.h", "http_service.h" }, |
| 94 | { "http_service.cpp", "http_service.cpp" }, |
| 95 | { "http_servlet.h", "http_servlet.h" }, |
| 96 | { "websocket.cpp", "websocket.cpp" }, |
| 97 | { "websocket.h", "websocket.h" }, |
| 98 | |
| 99 | { NULL, NULL } |
| 100 | }; |
| 101 | |
| 102 | return tmpl.files_copy(name, tab); |
| 103 | } |
| 104 | |
| 105 | static bool create_service(file_tmpl& tmpl, const char* type) |
| 106 | { |
no test coverage detected
searching dependent graphs…