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

Function create_master_fiber

app/wizard/master_creator.cpp:23–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23static bool create_master_fiber(file_tmpl& tmpl)
24{
25 string file(tmpl.get_project_name());
26 file << ".cf";
27 if (!tmpl.copy_and_replace("master_fiber.cf", file.c_str())) {
28 return false;
29 }
30
31 const char* name = "master_fiber";
32 const FILE_FROM_TO tab[] = {
33 { "main_fiber.cpp", "main.cpp" },
34 { "master_fiber.h", "master_service.h" },
35 { "master_fiber.cpp", "master_service.cpp" },
36 { "stdafx_fiber.h", "stdafx.h" },
37 { NULL, NULL }
38 };
39
40 return tmpl.files_copy(name, tab)
41 && tmpl.copy_and_replace("Makefile_fiber", "Makefile")
42 && tmpl.file_copy("tmpl/Makefile_fiber.in",
43 "Makefile.in");
44}
45
46static bool create_master_proc(file_tmpl& tmpl)
47{

Callers 1

master_creatorFunction · 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…