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

basetriple.c File Reference

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

Compounds

struct  rnamlBASETRIPLE

Functions

rnamlBaseTriplernamlnewBaseTriple ()
 Creates a new rnamlBaseTriple structure.

rnamlBaseTriplernamlcloneBaseTriple (const rnamlBaseTriple *baseTriple)
 Clones a rnamlBaseTriple struture.

void rnamldeleteBaseTriple (rnamlBaseTriple *baseTriple)
 Frees the rnamlBaseTriple structure.

int rnamlisBaseTriple (const rnamlObject *obj)
 Tells wheter the object is a rnamlBaseTriple.

int rnamlequalsBaseTriple (const rnamlBaseTriple *left, const rnamlBaseTriple *right)
 Tells if left and right are equals.

rnamlObjectrnamlgetBaseTripleChild1 (rnamlBaseTriple *baseTriple)
 Gets the child 1 from the baseTriple.

void rnamlsetBaseTripleChild1 (rnamlBaseTriple *baseTriple, rnamlObject *child)
 Sets the baseTriple child 1.

rnamlObjectrnamlgetBaseTripleChild2 (rnamlBaseTriple *baseTriple)
 Gets the child 2 from the baseTriple.

void rnamlsetBaseTripleChild2 (rnamlBaseTriple *baseTriple, rnamlObject *child)
 Sets the baseTriple child 2.

rnamlObjectrnamlgetBaseTripleChild3 (rnamlBaseTriple *baseTriple)
 Gets the child 3 from the baseTriple.

void rnamlsetBaseTripleChild3 (rnamlBaseTriple *baseTriple, rnamlObject *child)
 Sets the baseTriple child 3.

xmlcpgObjectrnamltoXMLBaseTriple (const rnamlBaseTriple *baseTriple)
 Translates the rnamlBaseTriple structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlBaseTriple* rnamlcloneBaseTriple const rnamlBaseTriple   basetriple
 

Clones a rnamlBaseTriple struture.

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

void rnamldeleteBaseTriple rnamlBaseTriple   basetriple
 

Frees the rnamlBaseTriple structure.

Parameters:
basetriple  the rnamlBaseTriple structure to free.

int rnamlequalsBaseTriple const rnamlBaseTriple   left,
const rnamlBaseTriple   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* rnamlgetBaseTripleChild1 rnamlBaseTriple   baseTriple
 

Gets the child 1 from the baseTriple.

Parameters:
baseTriple  the rnamlBaseTriple structure.
Returns:
the baseTriple child 1 or NULL if baseTriple is NULL or not an rnamlBaseTriple.

rnamlObject* rnamlgetBaseTripleChild2 rnamlBaseTriple   baseTriple
 

Gets the child 2 from the baseTriple.

Parameters:
baseTriple  the rnamlBaseTriple structure.
Returns:
the baseTriple child 2 or NULL if baseTriple is NULL or not an rnamlBaseTriple.

rnamlObject* rnamlgetBaseTripleChild3 rnamlBaseTriple   baseTriple
 

Gets the child 3 from the baseTriple.

Parameters:
baseTriple  the rnamlBaseTriple structure.
Returns:
the baseTriple child 3 or NULL if baseTriple is NULL or not an rnamlBaseTriple.

int rnamlisBaseTriple const rnamlObject   obj
 

Tells wheter the object is a rnamlBaseTriple.

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

rnamlBaseTriple* rnamlnewBaseTriple  
 

Creates a new rnamlBaseTriple structure.

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

void rnamlsetBaseTripleChild1 rnamlBaseTriple   baseTriple,
rnamlObject   child
 

Sets the baseTriple child 1.

The previous child 1 info is freed

Parameters:
baseTriple  the rnamlBaseTriple structure.
child  the child 1.

void rnamlsetBaseTripleChild2 rnamlBaseTriple   baseTriple,
rnamlObject   child
 

Sets the baseTriple child 2.

The previous child 2 info is freed

Parameters:
baseTriple  the rnamlBaseTriple structure.
child  the child 2.

void rnamlsetBaseTripleChild3 rnamlBaseTriple   baseTriple,
rnamlObject   child
 

Sets the baseTriple child 3.

The previous child 3 info is freed

Parameters:
baseTriple  the rnamlBaseTriple structure.
child  the child 3.

xmlcpgObject* rnamltoXMLBaseTriple const rnamlBaseTriple   baseTriple
 

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

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


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