![]() |
The Gaudi Framework
master (ff829712)
|
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 name, std::string_view id) |
void | addEdge (std::string_view srcName, std::string_view srcId, std::string_view tgtName, 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.
|
inline |
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 40 of file GraphDumper.h.
|
inline |
Definition at line 60 of file GraphDumper.h.
|
inline |
Definition at line 83 of file GraphDumper.h.
|
inline |
Definition at line 67 of file GraphDumper.h.
|
inline |
Definition at line 65 of file GraphDumper.h.
|
inlineprivate |
Definition at line 105 of file GraphDumper.h.
|
inlineprivate |
Definition at line 126 of file GraphDumper.h.
|
private |
name of the filed used for storing the graph
Definition at line 143 of file GraphDumper.h.
|
private |
stream to the graph file
Definition at line 145 of file GraphDumper.h.
|
private |