| 11 | using namespace CGraph; |
| 12 | |
| 13 | void tutorial_hello_cgraph() { |
| 14 | GPipelinePtr pipeline = GPipelineFactory::create(); // 创建一个pipeline,用于执行图框架信息 |
| 15 | GElementPtr hcg = nullptr; |
| 16 | |
| 17 | pipeline->registerGElement<HelloCGraphNode>(&hcg); // 注册一个HelloCGraphNode节点,功能就是打印 "Hello, CGraph." 信息 |
| 18 | pipeline->process(); // 运行pipeline |
| 19 | GPipelineFactory::remove(pipeline); |
| 20 | } |
| 21 | |
| 22 | |
| 23 | int main() { |