23 #ifndef STORAGE_GRAPHVIZ_H 24 #define STORAGE_GRAPHVIZ_H 48 PRETTY_CLASSNAME = 1 << 1,
80 virtual std::map<std::string, std::string>
graph() = 0;
85 virtual std::map<std::string, std::string>
nodes() = 0;
90 virtual std::map<std::string, std::string>
edges() = 0;
96 static std::string
escape(
const std::string&);
113 virtual std::map<std::string, std::string>
node(
const Device* device) = 0;
118 virtual std::map<std::string, std::string>
edge(
const Holder* holder) = 0;
126 class ActiongraphStyleCallbacks;
GraphvizFlags
Bitfield to control graphviz output.
Definition: Graphviz.h:44
static std::string escape(const std::string &)
Helper function to escape a string to a graphviz escString, see https://graphviz.gitlab.io/_pages/doc/info/attrs.html#k:escString.
virtual std::map< std::string, std::string > node(const Device *device)=0
Attributes for a specific node.
DevicegraphStyleCallbacks * get_debug_devicegraph_style_callbacks()
Get a DevicegraphStyleCallbacks object for debugging.
Base class for DevicegraphStyleCallbacks and ActiongraphStyleCallbacks.
Definition: Graphviz.h:71
virtual std::map< std::string, std::string > edges()=0
Default attributes for edges.
virtual std::map< std::string, std::string > graph()=0
Attributes for the graph.
An abstract base class for storage devices.
Definition: Device.h:81
ActiongraphStyleCallbacks * get_debug_actiongraph_style_callbacks()
Get a ActiongraphStyleCallbacks object for debugging.
An abstract base class for storage holders.
Definition: Holder.h:56
virtual std::map< std::string, std::string > nodes()=0
Default attributes for nodes.
The storage namespace.
Definition: Actiongraph.h:39
virtual std::map< std::string, std::string > edge(const Holder *holder)=0
Attributes for a specific edge.
Style callbacks used by Devicegraph::write_graphviz().
Definition: Graphviz.h:104