MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / build_pipeline

Function build_pipeline

example/E05-HttpServer.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63GPipeline* build_pipeline() {
64 GPipeline* pipeline = GPipelineFactory::create();
65 GElementPtr a, b, c, d = nullptr;
66 pipeline->registerGElement<ReqeustNode>(&a, {}, "request");
67 pipeline->registerGElement<ProcessNode<1, 100>>(&b, {a}, "process_1");
68 pipeline->registerGElement<ProcessNode<2, 200>>(&c, {a}, "process_2");
69 pipeline->registerGElement<ResponseNode>(&d, {b, c}, "response");
70
71 return pipeline;
72}
73
74
75void mock_client_request(GPipelineManager& manager) {

Callers 1

example_http_serverFunction · 0.85

Calls 1

createFunction · 0.85

Tested by

no test coverage detected