Graphviz 12.0.1~dev.20240715.2254
Loading...
Searching...
No Matches
ingraphs.h File Reference

supports user-supplied data More...

#include "config.h"
#include <stdbool.h>
#include <stdio.h>
Include dependency graph for ingraphs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ingraph_state
 

Functions

ingraph_statenewIngraph (ingraph_state *, char **)
 
ingraph_statenewIng (ingraph_state *, char **, Agraph_t *(*readf)(void *))
 
ingraph_statenewIngGraphs (ingraph_state *, Agraph_t **, Agraph_t *(*readf)(void *))
 
void closeIngraph (ingraph_state *sp)
 
Agraph_tnextGraph (ingraph_state *)
 
char * fileName (ingraph_state *)
 Return name of current file being processed.
 

Detailed Description

The ingraphs library works with libcgraph with all user-supplied data. For this to work, the include file relies upon its context to supply a definition of Agraph_t.

Definition in file ingraphs.h.

Function Documentation

◆ closeIngraph()

void closeIngraph ( ingraph_state sp)

Definition at line 147 of file ingraphs.c.

References ingraph_state::Files, ingraph_state::fp, free(), ingraph_state::heap, ingraph_state::ingraphs, and ingraph_state::u.

Referenced by gvpr().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fileName()

char * fileName ( ingraph_state sp)

Definition at line 156 of file ingraphs.c.

References ingraph_state::ctr, ingraph_state::Files, fname, ingraph_state::ingraphs, and ingraph_state::u.

Referenced by add_graph_to_viewport_from_file(), CMainWindow::addFile(), glCompButtonAddPngGlyph(), gvpr_core(), loadAttrs(), MdiChild::loadFile(), MdiChild::loadPreview(), main(), main(), nextFile(), ImageViewer::open(), save_graph_with_file_name(), MdiChild::saveAs(), MdiChild::saveFile(), and stripFileExtension().

Here is the caller graph for this function:

◆ newIng()

ingraph_state * newIng ( ingraph_state sp,
char **  files,
Agraph_t *(*)(void *)  readf 
)

Definition at line 120 of file ingraphs.c.

References new_ing().

Referenced by gvpr_core(), and newIngraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newIngGraphs()

ingraph_state * newIngGraphs ( ingraph_state sp,
Agraph_t **  graphs,
Agraph_t *(*)(void *)  readf 
)

Definition at line 128 of file ingraphs.c.

References new_ing().

Referenced by gvpr_core().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newIngraph()

ingraph_state * newIngraph ( ingraph_state sp,
char **  files 
)

Definition at line 140 of file ingraphs.c.

References dflt_read(), and newIng().

Referenced by main(), main(), and readGraphs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nextGraph()

Agraph_t * nextGraph ( ingraph_state sp)

Definition at line 61 of file ingraphs.c.

References ingraph_state::ctr, ingraph_state::Files, ingraph_state::fp, ingraph_state::Graphs, ingraph_state::ingraphs, nextFile(), NULL, ingraph_state::readf, and ingraph_state::u.

Referenced by gvpr_core(), main(), main(), and readGraphs().

Here is the call graph for this function:
Here is the caller graph for this function: