source: XIOS/dev/dev_trunk_omp/src/graphviz.hpp @ 1677

Last change on this file since 1677 was 1671, checked in by yushan, 5 years ago

MARK: branch merged with trunk @1663. One output graph file with output file names in file writer filter.

File size: 707 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
9namespace xios
10{
11
12  class CGraphviz
13  {
14
15    public:
16
17      CGraphviz();
18      static void buildStaticWorkflowGraph();
19      static void showStaticWorkflowGraph();
20
21    private:
22      template <class Graph> struct exercise_vertex;
23
24  }; // class CGraphviz
25
26  template <class Graph> struct CGraphviz::exercise_vertex {
27    exercise_vertex(Graph& g_) : g(g_) { }
28    typedef typename boost::graph_traits<Graph>::vertex_descriptor Vertex;
29    void operator()(const Vertex& v) const { } Graph& g;
30  };
31
32} // namespace xios
33
34#endif
Note: See TracBrowser for help on using the repository browser.