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

end.c File Reference

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

Compounds

struct  rnamlEND

Functions

rnamlEndrnamlnewEnd ()
 Creates a new rnamlEnd structure.

rnamlEndrnamlcloneEnd (const rnamlEnd *end)
 Clones a rnamlEnd struture.

void rnamldeleteEnd (rnamlEnd *end)
 Frees the rnamlEnd structure.

int rnamlisEnd (const rnamlObject *obj)
 Tells wheter the object is a rnamlEnd.

int rnamlequalsEnd (const rnamlEnd *left, const rnamlEnd *right)
 Tells if left and right are equals.

int rnamlgetEndValue (const rnamlEnd *end)
 Gets the end value.

void rnamlsetEndValue (rnamlEnd *end, int value)
 Sets the end value.

xmlcpgObjectrnamltoXMLEnd (const rnamlEnd *end)
 Translates the rnamlEnd structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlEnd* rnamlcloneEnd const rnamlEnd   end
 

Clones a rnamlEnd struture.

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

void rnamldeleteEnd rnamlEnd   end
 

Frees the rnamlEnd structure.

Parameters:
end  the rnamlEnd structure to free.

int rnamlequalsEnd const rnamlEnd   left,
const rnamlEnd   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.

int rnamlgetEndValue const rnamlEnd   end
 

Gets the end value.

Parameters:
end  the rnamlEnd structure.
Returns:
the end value or -1 if end is NULL or not an rnamlEnd.

int rnamlisEnd const rnamlObject   obj
 

Tells wheter the object is a rnamlEnd.

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

rnamlEnd* rnamlnewEnd  
 

Creates a new rnamlEnd structure.

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

void rnamlsetEndValue rnamlEnd   end,
int    value
 

Sets the end value.

Parameters:
end  the rnamlEnd structure.
value  the end value.

xmlcpgObject* rnamltoXMLEnd const rnamlEnd   end
 

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

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


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