![]() | ![]() | ![]() | Libmergeant Reference Manual | ![]() |
---|
#define MG_GRAPHVIZ_TYPE #define MG_GRAPHVIZ (obj) #define IS_MG_GRAPHVIZ (obj) #define MG_GRAPHVIZ_CLASS (klass) struct 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/).
#define MG_GRAPHVIZ(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, mg_graphviz_get_type(), MgGraphviz)
obj : |
|
#define IS_MG_GRAPHVIZ(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, mg_graphviz_get_type ())
obj : |
|
#define MG_GRAPHVIZ_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, mg_graphviz_get_type (), MgGraphvizClass)
klass : |
|
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 occured |
<<< MgRefBase | MgWorkCore >>> |