Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

path.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "path.h"

Compounds

struct  rnamlPATH

Functions

rnamlPathrnamlnewPath ()
 Creates a new rnamlPath structure.

rnamlPathrnamlclonePath (const rnamlPath *path)
 Clones a rnamlPath struture.

void rnamldeletePath (rnamlPath *path)
 Frees the rnamlPath structure.

int rnamlisPath (const rnamlObject *obj)
 Tells wheter the object is a rnamlPath.

int rnamlequalsPath (const rnamlPath *left, const rnamlPath *right)
 Tells if left and right are equals.

rnamlObjectrnamlgetPathChild (rnamlPath *path)
 Gets the url from the path.

void rnamlsetPathChild (rnamlPath *path, rnamlObject *child)
 Sets the path child.

xmlcpgObjectrnamltoXMLPath (const rnamlPath *path)
 Translates the rnamlPath structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlPath* rnamlclonePath const rnamlPath   path
 

Clones a rnamlPath struture.

Parameters:
path  the structure to clone.
Returns:
the new allocated structure or NULL if something goes wrong.

void rnamldeletePath rnamlPath   path
 

Frees the rnamlPath structure.

Parameters:
path  the rnamlPath structure to free.

int rnamlequalsPath const rnamlPath   left,
const rnamlPath   right
 

Tells if left and right are equals.

Parameters:
left  the left object to compare.
right  the right object to compare.
Returns:
1 if the objects are equals or 0 otherwise.

rnamlObject* rnamlgetPathChild rnamlPath   path
 

Gets the url from the path.

Parameters:
path  the rnamlPath structure.
Returns:
the path url is NULL or if path is NULL or not an rnamlPath.

int rnamlisPath const rnamlObject   obj
 

Tells wheter the object is a rnamlPath.

Parameters:
obj  the rnamlObject to test.
Returns:
1 if the object is a rnamlPath, 0 otherwise.

rnamlPath* rnamlnewPath  
 

Creates a new rnamlPath structure.

Returns:
the new allocated structure or NULL if something goes wrong.

void rnamlsetPathChild rnamlPath   path,
rnamlObject   child
 

Sets the path child.

The previous child info is freed

Parameters:
path  the rnamlPath structure.
child  the path child.

xmlcpgObject* rnamltoXMLPath const rnamlPath   path
 

Translates the rnamlPath structure into a xmlcpgElement conforming to the RNAML standard.

Parameters:
molecule  the rnamlPath structure to translate.
Returns:
the xmlcpgObject or NULL if something goes wrong.


Generated on Tue Nov 11 14:59:51 2003 for xmlcpg by doxygen1.2.18