NAME:

PATH_PARSER.c

SYNOPSIS:

This file contain the code which is used to parse a path file. It also contain the functions used to return path and node attributes. Key functions include: ParsePathFile(), PrintPath(), GetPathAttribute(), GetNodeAttribute(), and GetPathLength().

DESCRIPTION:

ParsePathFile(char filename) is used to open the file which contains the path. It then builds a link list of nodes and they attributes. It calls read_file, parse_path_string, and build_path.

PrintPath() is used for debugging. It prints the path list of nodes and they attribute.

GetPathAttribute(char *attr_label) it returns char string of the path Attribute or NULL if the path doesn't have that attribute defined.

GetNodeAttribute(int node_id, char *attr_label) it returns the char string for the node attribute for the node_id. If the node doesn't have the node attribute it will return the global path attribute. If the path doesn't have such a attribute it returns NULL.

GetPathLength() returns the number of node in a given path.

SEE ALSO:

PATH_PARSER.h

NOTES:

ORIGAN AUTHOR:

Frank Shipman

LAST MODIFACTIO DATE: