Graphviz  2.29.20120524.0446
Data Structures | Typedefs | Functions | Variables
lib/graph/graphio.c File Reference
#include "libgraph.h"
Include dependency graph for graphio.c:

Go to the source code of this file.

Data Structures

struct  printdict_t

Typedefs

typedef struct printdict_t printdict_t

Functions

Agraph_tagread (FILE *fp)
Agraph_tagmemread (char *cp)
Agraph_tagread_usergets (FILE *fp, gets_f usergets)
char * agstrcanon (char *arg, char *buf)
void agsetiodisc (char *(*myfgets)(char *s, int size, FILE *stream), size_t(*myfwrite)(const void *ptr, size_t size, size_t nmemb, FILE *stream), int(*myferror)(FILE *stream))
int agputs (const char *s, FILE *fp)
int agputc (int c, FILE *fp)
char * agcanonical (char *str)
char * agcanon (char *str)
void agwrnode (Agraph_t *g, FILE *fp, Agnode_t *n, int full, int indent)
void agwredge (Agraph_t *g, FILE *fp, Agedge_t *e, int list_all)
int agwrite (Agraph_t *g, FILE *fp)

Variables

Dtdisc_t agEdgedisc

Typedef Documentation

typedef struct printdict_t printdict_t

Function Documentation

char* agcanon ( char *  str)

Definition at line 280 of file graphio.c.

char* agcanonical ( char *  str)

Definition at line 270 of file graphio.c.

References agstrcanon().

Referenced by agwrnode(), and agwrite().

Agraph_t* agmemread ( char *  cp)

Definition at line 80 of file graphio.c.

References AG, AG_s::fgets, aglexinit(), NULL, agparse(), and AG_s::parsed_g.

Referenced by readstring().

int agputc ( int  c,
FILE *  fp 
)

Definition at line 233 of file graphio.c.

References AG, and AG_s::fwrite.

Referenced by write_plain(), and agwrite().

int agputs ( const char *  s,
FILE *  fp 
)

Definition at line 223 of file graphio.c.

References AG, and AG_s::fwrite.

Referenced by write_plain(), agwrnode(), agwredge(), and agwrite().

Agraph_t* agread ( FILE *  fp)

Definition at line 72 of file graphio.c.

References aglexinit(), NULL, agparse(), AG, and AG_s::parsed_g.

Referenced by gvNextInputGraph(), main(), and read().

Agraph_t* agread_usergets ( FILE *  fp,
gets_f  usergets 
)

Definition at line 93 of file graphio.c.

References AG, AG_s::fgets, aglexinit(), NULL, agparse(), and AG_s::parsed_g.

Referenced by gvNextInputGraph().

void agsetiodisc ( char *(*)(char *s, int size, FILE *stream)  myfgets,
size_t(*)(const void *ptr, size_t size, size_t nmemb, FILE *stream)  myfwrite,
int(*)(FILE *stream)  myferror 
)

Definition at line 208 of file graphio.c.

References AG, AG_s::fgets, AG_s::fwrite, and AG_s::ferror.

Referenced by gvplugin_graph().

char* agstrcanon ( char *  arg,
char *  buf 
)

Definition at line 191 of file graphio.c.

References aghtmlstr().

Referenced by agcanonical().

void agwredge ( Agraph_t g,
FILE *  fp,
Agedge_t e,
int  list_all 
)
int agwrite ( Agraph_t g,
FILE *  fp 
)
void agwrnode ( Agraph_t g,
FILE *  fp,
Agnode_t n,
int  full,
int  indent 
)

Variable Documentation

Initial value:
 {
    offsetof(Agedge_t, id),
    sizeof(int),
    -1,
    NIL(Dtmake_f),
    NIL(Dtfree_f),
    (Dtcompar_f) agcmpid,
    NIL(Dthash_f),
    NIL(Dtmemory_f),

}

Definition at line 454 of file graphio.c.