![]() |
The Gaudi Framework
master (bef125d4)
|
utilities to dump graphs in different formats More...
#include </builds/gaudi/Gaudi/GaudiHive/src/GraphDumper.h>

Public Member Functions | |
| Graph (std::string_view fileName, FileType type=FileType::UNKNOWN) | |
| Creates a graph with given type and given file name. | |
| ~Graph () | |
| std::string const & | fileName () |
| void | addNode (std::string_view id, std::string_view name) |
| void | addEdge (std::string_view srcId, std::string_view tgtId, std::string_view label="") |
Private Member Functions | |
| void | writeHeader () |
| void | writeTrailer () |
Private Attributes | |
| std::string | m_fileName |
| name of the filed used for storing the graph | |
| std::ofstream | m_stream |
| stream to the graph file | |
| FileType | m_type { FileType::UNKNOWN } |
| type of file used | |
utilities to dump graphs in different formats
supported right now : .dot, mermaid and graphml
Usage :
Definition at line 30 of file GraphDumper.h.
| Gaudi::Hive::Graph::Graph | ( | std::string_view | fileName, |
| FileType | type = FileType::UNKNOWN ) |
Creates a graph with given type and given file name.
by default (and if UNKNOWN is provided) type is deduced from the file extension in case extension is not recognized, dot format is used and filename gets an extra ".dot" at the end
Definition at line 45 of file GraphDumper.cpp.
| Gaudi::Hive::Graph::~Graph | ( | ) |
Definition at line 65 of file GraphDumper.cpp.
| void Gaudi::Hive::Graph::addEdge | ( | std::string_view | srcId, |
| std::string_view | tgtId, | ||
| std::string_view | label = "" ) |
Definition at line 93 of file GraphDumper.cpp.
| void Gaudi::Hive::Graph::addNode | ( | std::string_view | id, |
| std::string_view | name ) |
Definition at line 72 of file GraphDumper.cpp.
| std::string const & Gaudi::Hive::Graph::fileName | ( | ) |
Definition at line 70 of file GraphDumper.cpp.
|
private |
Definition at line 124 of file GraphDumper.cpp.
|
private |
Definition at line 147 of file GraphDumper.cpp.
|
private |
name of the filed used for storing the graph
Definition at line 56 of file GraphDumper.h.
|
private |
stream to the graph file
Definition at line 58 of file GraphDumper.h.
|
private |