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

structure.c File Reference

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

Compounds

struct  rnamlSTRUCTURE

Functions

rnamlStructurernamlnewStructure ()
 Creates a new rnamlStructure structure.

rnamlStructurernamlcloneStructure (const rnamlStructure *structure)
 Clones a rnamlStructure struture.

void rnamldeleteStructure (rnamlStructure *structure)
 Frees the rnamlStructure structure.

int rnamlisStructure (const rnamlObject *obj)
 Tells wheter the object is a rnamlStructure.

int rnamlequalsStructure (const rnamlStructure *left, const rnamlStructure *right)
 Tells if left and right are equals.

void rnamladdStructureModel (rnamlStructure *structure, rnamlModel *model)
 Adds a model into a structure.

xmlcpgListrnamlgetStructureModels (rnamlStructure *structure)
 Gets the structure's model list.

xmlcpgObjectrnamltoXMLStructure (const rnamlStructure *structure)
 Translates the rnamlStructure structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

void rnamladdStructureModel rnamlStructure   structure,
rnamlModel   model
 

Adds a model into a structure.

Parameters:
structure  the rnamlStructure structure.
model  the rnamlModel structure.

rnamlStructure* rnamlcloneStructure const rnamlStructure   structure
 

Clones a rnamlStructure struture.

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

void rnamldeleteStructure rnamlStructure   structure
 

Frees the rnamlStructure structure.

Parameters:
structure  the rnamlStructure structure to free.

int rnamlequalsStructure const rnamlStructure   left,
const rnamlStructure   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.

xmlcpgList* rnamlgetStructureModels rnamlStructure   structure
 

Gets the structure's model list.

Parameters:
structure  the rnamlStructure structure.
Returns:
the structure's model xmlcpgList or NULL if something goes wrong.

int rnamlisStructure const rnamlObject   obj
 

Tells wheter the object is a rnamlStructure.

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

rnamlStructure* rnamlnewStructure  
 

Creates a new rnamlStructure structure.

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

xmlcpgObject* rnamltoXMLStructure const rnamlStructure   structure
 

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

Parameters:
molecule  the rnamlStructure 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