MCPcopy Create free account
hub / github.com/acl-dev/acl / create_fiber

Function create_fiber

app/wizard/http_creator.cpp:52–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static 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
80static bool create_proc(file_tmpl& tmpl)
81{

Callers 1

create_serviceFunction · 0.85

Calls 5

get_project_nameMethod · 0.80
copy_and_replaceMethod · 0.80
files_copyMethod · 0.80
file_copyMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…