Giter VIP home page Giter VIP logo

Comments (7)

hellolinfrom2025 avatar hellolinfrom2025 commented on May 14, 2024 1

同问,想动态构建流程图,但是注册节点用了模板参数。
是否可以增加,运行时多态注册节点。

from cgraph.

ChunelFeng avatar ChunelFeng commented on May 14, 2024

你好,个人认为,如果想实现逆向解析的话,用 graphviz格式可能不是很好。

自行设定 json 格式,可读性会更好,也应该会更容易实现一点。供参考

from cgraph.

libaineu2004 avatar libaineu2004 commented on May 14, 2024

你好,个人认为,如果想实现逆向解析的话,用 graphviz格式可能不是很好。

自行设定 json 格式,可读性会更好,也应该会更容易实现一点。供参考

格式还好,可以采用xml或者json格式,都行。
问题是文件解析出来之后,怎么来动态生成该图对应的Pipeline或者MultiPipeline?
pipeline->registerGElement
...
这个有没例程可以参考?

from cgraph.

ChunelFeng avatar ChunelFeng commented on May 14, 2024

暂无例子, 色图当前未引入三方库,无法实现 json解析和读取的逻辑

如果顺利的话,预计等支持 python语言之后,会提供类似的demo

最近开发者内部讨论的主要内容,都是围绕如何兼容python来展开的

from cgraph.

libaineu2004 avatar libaineu2004 commented on May 14, 2024

暂无例子, 色图当前未引入三方库,无法实现 json解析和读取的逻辑

如果顺利的话,预计等支持 python语言之后,会提供类似的demo

最近开发者内部讨论的主要内容,都是围绕如何兼容python来展开的

那请你给点思路吧,xml或json解析的功能我自己可以实现。
但是怎么动态生成Pipeline或者MultiPipeline?怎么注册这些解析出来的节点?pipeline->registerGElement??

另外,这里的C++对象是MyNode1和MyNode2
CStatus status = pipeline->registerGElement(&a, {}, "nodeA");
status += pipeline->registerGElement(&b, {a}, "nodeB");
能否也支持使用字符串"MyNode1"和"MyNode2",字符串的形式也能注册节点?
CStatus status = pipeline->registerGElement<"MyNode1">(&a, {}, "nodeA");
status += pipeline->registerGElement<"MyNode2">(&b, {a}, "nodeB");

因为xml或json保存的是字符串,解析出来之后,要想动态注册它们的话,似乎只能使用字符串的方式了。。

from cgraph.

ChunelFeng avatar ChunelFeng commented on May 14, 2024

暂无明确思路,请自行思考

from cgraph.

ChunelFeng avatar ChunelFeng commented on May 14, 2024

您好,不是很明确您的需求和想法。
是否可以新开一个 issue ,详细描述情况?

from cgraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.