| 50 | } |
| 51 | |
| 52 | static bool create_fiber(file_tmpl& tmpl) |
| 53 | { |
| 54 | string file(tmpl.get_project_name()); |
| 55 | file << ".cf"; |
| 56 | if (tmpl.copy_and_replace("master_fiber.cf", file.c_str()) == false) |
| 57 | return false; |
| 58 | |
| 59 | const char* name = "master_fiber"; |
| 60 | const FILE_FROM_TO tab[] = { |
| 61 | { "stdafx_fiber.h", "stdafx.h" }, |
| 62 | { "main_fiber.cpp", "main.cpp" }, |
| 63 | { "master_fiber.h", "master_service.h" }, |
| 64 | { "master_fiber.cpp", "master_service.cpp" }, |
| 65 | { "http_service.h", "http_service.h" }, |
| 66 | { "http_service.cpp", "http_service.cpp" }, |
| 67 | { "http_servlet.h", "http_servlet.h" }, |
| 68 | { "websocket.cpp", "websocket.cpp" }, |
| 69 | { "websocket.h", "websocket.h" }, |
| 70 | |
| 71 | { NULL, NULL } |
| 72 | }; |
| 73 | |
| 74 | return tmpl.files_copy(name, tab) |
| 75 | && tmpl.copy_and_replace("Makefile_fiber", "Makefile") |
| 76 | && tmpl.file_copy("tmpl/Makefile_fiber.in", |
| 77 | "Makefile.in"); |
| 78 | } |
| 79 | |
| 80 | static bool create_proc(file_tmpl& tmpl) |
| 81 | { |
no test coverage detected
searching dependent graphs…