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

url.c File Reference

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

Compounds

struct  rnamlURL

Functions

rnamlUrlrnamlnewUrl ()
 Creates a new rnamlUrl structure.

rnamlUrlrnamlcloneUrl (const rnamlUrl *url)
 Clones a rnamlUrl struture.

void rnamldeleteUrl (rnamlUrl *url)
 Frees the rnamlUrl structure.

int rnamlisUrl (const rnamlObject *obj)
 Tells wheter the object is a rnamlUrl.

int rnamlequalsUrl (const rnamlUrl *left, const rnamlUrl *right)
 Tells if left and right are equals.

const char * rnamlgetUrlValue (const rnamlUrl *url)
 Gets the value url.

void rnamlsetUrlValue (rnamlUrl *url, const char *value)
 Sets the url value.

xmlcpgObjectrnamltoXMLUrl (const rnamlUrl *url)
 Translates the rnamlUrl structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlUrl* rnamlcloneUrl const rnamlUrl   url
 

Clones a rnamlUrl struture.

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

void rnamldeleteUrl rnamlUrl   url
 

Frees the rnamlUrl structure.

Parameters:
url  the rnamlUrl structure to free.

int rnamlequalsUrl const rnamlUrl   left,
const rnamlUrl   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.

const char* rnamlgetUrlValue const rnamlUrl   url
 

Gets the value url.

Parameters:
url  the rnamlUrl structure.
Returns:
the url value string or NULL if url is NULL or not an rnamlUrl.

int rnamlisUrl const rnamlObject   obj
 

Tells wheter the object is a rnamlUrl.

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

rnamlUrl* rnamlnewUrl  
 

Creates a new rnamlUrl structure.

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

void rnamlsetUrlValue rnamlUrl   url,
const char *    value
 

Sets the url value.

The previous url value is freed and a copy of value is generated.

Parameters:
url  the rnamlUrl structure.
value  the url value.

xmlcpgObject* rnamltoXMLUrl const rnamlUrl   url
 

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

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


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