Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

gb_save.c File Reference

#include "gb_io.h"
#include "gb_graph.h"

Classes

struct  block_rep

Defines

#define MAX_SV_STRING   4095
#define MAX_SV_ID   154 \
#define panic(c)   {panic_code= c;goto sorry;} \
#define fillin(l, t)   if(fill_field((util*) &(l) ,t) ) goto sorry \
#define buffer   (&item_buf[MAX_SV_STRING+3]) \
#define bad_type_code   0x1
#define string_too_long   0x2
#define addr_not_in_data_area   0x4
#define addr_in_mixed_block   0x8
#define bad_string_char   0x10
#define ignored_data   0x20 \
#define unk   0
#define ark   1
#define vrt   2
#define mxt   3 \
#define lookup(l, t)   classify((util*) &(l) ,t) \
#define append_comma   *buf_ptr++= ',' \
#define trans(l, t)   translate_field((util*) &(l) ,t) \

Functions

long fill_field (util *l, char t)
long finish_record ()
void classify (util *l, char t)
void flushout ()
void prepare_string (char *s)
void move_item ()
void translate_field (util *l, char t)
Graphrestore_graph (char *f)
long save_graph (Graph *g, char *f)

Variables

long comma_expected
Vertexverts
Vertexlast_vert
Arcarcs
Arclast_arc
char item_buf [4095+3+81]
long anomalies
FILE * save_file
block_repblocks
Area working_storage
char * buf_ptr
long magic

Define Documentation

#define addr_in_mixed_block   0x8
 

#define addr_not_in_data_area   0x4
 

#define append_comma   *buf_ptr++= ',' \
 

#define ark   1
 

#define bad_string_char   0x10
 

#define bad_type_code   0x1
 

#define buffer   (&item_buf[MAX_SV_STRING+3]) \
 

#define fillin l,
 )     if(fill_field((util*) &(l) ,t) ) goto sorry \
 

#define ignored_data   0x20 \
 

#define lookup l,
 )     classify((util*) &(l) ,t) \
 

#define MAX_SV_ID   154 \
 

#define MAX_SV_STRING   4095
 

#define mxt   3 \
 

#define panic  )     {panic_code= c;goto sorry;} \
 

#define string_too_long   0x2
 

#define trans l,
 )     translate_field((util*) &(l) ,t) \
 

#define unk   0
 

#define vrt   2
 


Function Documentation

void classify util l,
char  t
[static]
 

long fill_field util l,
char  t
[static]
 

long finish_record  )  [static]
 

void flushout  )  [static]
 

void move_item  )  [static]
 

void prepare_string char*  s  )  [static]
 

Graph* restore_graph char*  f  ) 
 

long save_graph Graph g,
char*  f
 

void translate_field util l,
char  t
[static]
 


Variable Documentation

long anomalies [static]
 

Arc* arcs [static]
 

block_rep* blocks [static]
 

char* buf_ptr [static]
 

long comma_expected [static]
 

char item_buf[4095+3+81] [static]
 

Arc* last_arc [static]
 

Vertex* last_vert [static]
 

long magic [static]
 

FILE* save_file [static]
 

Vertex* verts [static]
 

Area working_storage [static]
 


Generated on Wed Aug 27 16:17:18 2008 for Georgia Tech Network Simulator (GTNetS) by  doxygen 1.3.9.1