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

Function create_proc

app/wizard/http_creator.cpp:80–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static 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
105static bool create_service(file_tmpl& tmpl, const char* type)
106{

Callers 1

create_serviceFunction · 0.85

Calls 4

get_project_nameMethod · 0.80
copy_and_replaceMethod · 0.80
files_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…