Last change
on this file since 2697 was
1704,
checked in by yushan, 5 years ago
|
Introducing the new graph functionality. Attribute build_workflow_graph=.TRUE. is used in the field definition section in the xml file to enable the workflow graph of the field and other fields referecing to it. A more detailed document will be available soon on the graph fuctionality.
|
File size:
759 bytes
|
Line | |
---|
1 | #ifndef __GRAPHVIZ_HPP__ |
---|
2 | #define __GRAPHVIZ_HPP__ |
---|
3 | |
---|
4 | #include <algorithm> |
---|
5 | #include <boost/utility.hpp> |
---|
6 | #include <boost/graph/adjacency_list.hpp> |
---|
7 | #include <boost/graph/graphviz.hpp> |
---|
8 | |
---|
9 | namespace xios |
---|
10 | { |
---|
11 | |
---|
12 | class CGraphviz |
---|
13 | { |
---|
14 | |
---|
15 | public: |
---|
16 | |
---|
17 | CGraphviz(); |
---|
18 | static void buildWorkflowGraphDot(); |
---|
19 | static void buildWorkflowGraphVisjs_with_info(); |
---|
20 | static void showStaticWorkflowGraph(); |
---|
21 | |
---|
22 | private: |
---|
23 | template <class Graph> struct exercise_vertex; |
---|
24 | |
---|
25 | }; // class CGraphviz |
---|
26 | |
---|
27 | template <class Graph> struct CGraphviz::exercise_vertex { |
---|
28 | exercise_vertex(Graph& g_) : g(g_) { } |
---|
29 | typedef typename boost::graph_traits<Graph>::vertex_descriptor Vertex; |
---|
30 | void operator()(const Vertex& v) const { } Graph& g; |
---|
31 | }; |
---|
32 | |
---|
33 | } // namespace xios |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.