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

seqdata.c File Reference

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

Compounds

struct  rnamlSEQDATA

Functions

rnamlSeqDatarnamlnewSeqData ()
 Creates a new rnamlSeqData structure.

rnamlSeqDatarnamlcloneSeqData (const rnamlSeqData *seqData)
 Clones a rnamlSeqData struture.

void rnamldeleteSeqData (rnamlSeqData *seqData)
 Frees the rnamlSeqData structure.

int rnamlisSeqData (const rnamlObject *obj)
 Tells wheter the object is a rnamlSeqData.

int rnamlequalsSeqData (const rnamlSeqData *left, const rnamlSeqData *right)
 Tells if left and right are equals.

const char * rnamlgetSeqDataValue (const rnamlSeqData *seqData)
 Gets the value seqData.

void rnamlsetSeqDataValue (rnamlSeqData *seqData, const char *value)
 Sets the seqData value.

xmlcpgObjectrnamltoXMLSeqData (const rnamlSeqData *seqData)
 Translates the rnamlSeqData structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlSeqData* rnamlcloneSeqData const rnamlSeqData   seqdata
 

Clones a rnamlSeqData struture.

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

void rnamldeleteSeqData rnamlSeqData   seqdata
 

Frees the rnamlSeqData structure.

Parameters:
seqdata  the rnamlSeqData structure to free.

int rnamlequalsSeqData const rnamlSeqData   left,
const rnamlSeqData   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.

const char* rnamlgetSeqDataValue const rnamlSeqData   seqData
 

Gets the value seqData.

Parameters:
seqData  the rnamlSeqData structure.
Returns:
the seqData value string or NULL if seqData is NULL or not an rnamlSeqData.

int rnamlisSeqData const rnamlObject   obj
 

Tells wheter the object is a rnamlSeqData.

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

rnamlSeqData* rnamlnewSeqData  
 

Creates a new rnamlSeqData structure.

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

void rnamlsetSeqDataValue rnamlSeqData   seqData,
const char *    value
 

Sets the seqData value.

The previous seqData value is freed and a copy of value is generated.

Parameters:
seqData  the rnamlSeqData structure.
value  the seqData value.

xmlcpgObject* rnamltoXMLSeqData const rnamlSeqData   seqData
 

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

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


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