| Libmergeant Reference Manual | ||||
|---|---|---|---|---|
MgGraphviz;
guint mg_graphviz_get_type (void);
GObject* mg_graphviz_new (MgConf *conf);
void mg_graphviz_add_to_graph (MgGraphviz *graph,
GObject *obj);
gboolean mg_graphviz_save_file (MgGraphviz *graph,
const gchar *filename,
GError **error);
An object os this class will be able to produce .dot files representing a graphical view of one or more query internals. The .dot file can be processed with the GraphViz tool (http://www.graphviz.org/).
GObject* mg_graphviz_new (MgConf *conf);
Creates a new MgGraphviz object
conf : |
a MgConf object |
| Returns : | the new object |
void mg_graphviz_add_to_graph (MgGraphviz *graph, GObject *obj);
Adds obj to be graphed by graph
graph : |
a MgGraphviz object |
obj : |
a GObject object to be graphed |
gboolean mg_graphviz_save_file (MgGraphviz *graph, const gchar *filename, GError **error);
Saves a dot representation of the graph object to filename
graph : |
a MgGraphviz object |
filename : |
|
error : |
|
| Returns : | TRUE if no error occurred |