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

analysis.c File Reference

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

Compounds

struct  rnamlANALYSIS

Functions

rnamlAnalysisrnamlnewAnalysis ()
 Creates a new rnamlAnalysis structure.

rnamlAnalysisrnamlcloneAnalysis (const rnamlAnalysis *analysis)
 Clones a rnamlAnalysis struture.

void rnamldeleteAnalysis (rnamlAnalysis *analysis)
 Frees the rnamlAnalysis structure.

int rnamlisAnalysis (const rnamlObject *obj)
 Tells wheter the object is a rnamlAnalysis.

int rnamlequalsAnalysis (const rnamlAnalysis *left, const rnamlAnalysis *right)
 Tells if left and right are equals.

const char * rnamlgetAnalysisId (const rnamlAnalysis *analysis)
 Gets the analysis id.

void rnamlsetAnalysisId (rnamlAnalysis *analysis, const char *id)
 Sets the analysis id.

void rnamladdAnalysisChild (rnamlAnalysis *analysis, rnamlObject *obj)
 Adds a analysis child.

xmlcpgListrnamlgetAnalysisChildren (const rnamlAnalysis *analysis)
 Gets the children from the analysis collection.

xmlcpgObjectrnamltoXMLAnalysis (const rnamlAnalysis *analysis)
 Translates the rnamlAnalysis structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

void rnamladdAnalysisChild rnamlAnalysis   analysis,
rnamlObject   child
 

Adds a analysis child.

Parameters:
analysis  the rnamlAnalysis structure.
child  the rnaml substructure converted into xmlcpgObject.

rnamlAnalysis* rnamlcloneAnalysis const rnamlAnalysis   analysis
 

Clones a rnamlAnalysis struture.

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

void rnamldeleteAnalysis rnamlAnalysis   analysis
 

Frees the rnamlAnalysis structure.

Parameters:
analysis  the rnamlAnalysis structure to free.

int rnamlequalsAnalysis const rnamlAnalysis   left,
const rnamlAnalysis   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* rnamlgetAnalysisChildren const rnamlAnalysis   analysis
 

Gets the children from the analysis collection.

Parameters:
analysis  the rnamlAnalysis structure.
Returns:
the analysis children collection

const char* rnamlgetAnalysisId const rnamlAnalysis   analysis
 

Gets the analysis id.

Parameters:
analysis  the rnamlAnalysis structure.
Returns:
the analysis id string or NULL if analysis is NULL or not an rnamlAnalysis.

int rnamlisAnalysis const rnamlObject   obj
 

Tells wheter the object is a rnamlAnalysis.

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

rnamlAnalysis* rnamlnewAnalysis  
 

Creates a new rnamlAnalysis structure.

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

void rnamlsetAnalysisId rnamlAnalysis   analysis,
const char *    id
 

Sets the analysis id.

The previous analysis id is freed and a copy of id is generated.

Parameters:
analysis  the rnamlAnalysis structure.
id  the analysis id.

xmlcpgObject* rnamltoXMLAnalysis const rnamlAnalysis   analysis
 

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

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


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