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

length.c File Reference

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

Compounds

struct  rnamlLENGTH

Functions

rnamlLengthrnamlnewLength ()
 Creates a new rnamlLength structure.

rnamlLengthrnamlcloneLength (const rnamlLength *length)
 Clones a rnamlLength struture.

void rnamldeleteLength (rnamlLength *length)
 Frees the rnamlLength structure.

int rnamlisLength (const rnamlObject *obj)
 Tells wheter the object is a rnamlLength.

int rnamlequalsLength (const rnamlLength *left, const rnamlLength *right)
 Tells if left and right are equals.

int rnamlgetLengthValue (const rnamlLength *length)
 Gets the length value.

void rnamlsetLengthValue (rnamlLength *length, int value)
 Sets the length value.

xmlcpgObjectrnamltoXMLLength (const rnamlLength *length)
 Translates the rnamlLength structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlLength* rnamlcloneLength const rnamlLength   length
 

Clones a rnamlLength struture.

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

void rnamldeleteLength rnamlLength   length
 

Frees the rnamlLength structure.

Parameters:
length  the rnamlLength structure to free.

int rnamlequalsLength const rnamlLength   left,
const rnamlLength   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 rnamlgetLengthValue const rnamlLength   length
 

Gets the length value.

Parameters:
length  the rnamlLength structure.
Returns:
the length value or -1 if length is NULL or not an rnamlLength.

int rnamlisLength const rnamlObject   obj
 

Tells wheter the object is a rnamlLength.

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

rnamlLength* rnamlnewLength  
 

Creates a new rnamlLength structure.

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

void rnamlsetLengthValue rnamlLength   length,
int    value
 

Sets the length value.

Parameters:
length  the rnamlLength structure.
value  the length value.

xmlcpgObject* rnamltoXMLLength const rnamlLength   length
 

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

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


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