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

singlestrand.c File Reference

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

Compounds

struct  rnamlSINGLESTRAND

Functions

rnamlSingleStrandrnamlnewSingleStrand ()
 Creates a new rnamlSingleStrand structure.

rnamlSingleStrandrnamlcloneSingleStrand (const rnamlSingleStrand *singleStrand)
 Clones a rnamlSingleStrand struture.

void rnamldeleteSingleStrand (rnamlSingleStrand *singleStrand)
 Frees the rnamlSingleStrand structure.

int rnamlisSingleStrand (const rnamlObject *obj)
 Tells wheter the object is a rnamlSingleStrand.

int rnamlequalsSingleStrand (const rnamlSingleStrand *left, const rnamlSingleStrand *right)
 Tells if left and right are equals.

rnamlSegmentrnamlgetSingleStrandSegment (rnamlSingleStrand *singleStrand)
 Gets the segment from the singleStrand.

void rnamlsetSingleStrandSegment (rnamlSingleStrand *singleStrand, rnamlSegment *segment)
 Sets the singleStrand segment.

xmlcpgObjectrnamltoXMLSingleStrand (const rnamlSingleStrand *singleStrand)
 Translates the rnamlSingleStrand structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlSingleStrand* rnamlcloneSingleStrand const rnamlSingleStrand   singlestrand
 

Clones a rnamlSingleStrand struture.

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

void rnamldeleteSingleStrand rnamlSingleStrand   singlestrand
 

Frees the rnamlSingleStrand structure.

Parameters:
singlestrand  the rnamlSingleStrand structure to free.

int rnamlequalsSingleStrand const rnamlSingleStrand   left,
const rnamlSingleStrand   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.

rnamlSegment* rnamlgetSingleStrandSegment rnamlSingleStrand   singleStrand
 

Gets the segment from the singleStrand.

Parameters:
singleStrand  the rnamlSingleStrand structure.
Returns:
the singleStrand segment is NULL or if singleStrand is NULL or not an rnamlSingleStrand.

int rnamlisSingleStrand const rnamlObject   obj
 

Tells wheter the object is a rnamlSingleStrand.

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

rnamlSingleStrand* rnamlnewSingleStrand  
 

Creates a new rnamlSingleStrand structure.

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

void rnamlsetSingleStrandSegment rnamlSingleStrand   singleStrand,
rnamlSegment   segment
 

Sets the singleStrand segment.

The previous segment info is freed

Parameters:
singleStrand  the rnamlSingleStrand structure.
singleStrand  the singleStrand segment.

xmlcpgObject* rnamltoXMLSingleStrand const rnamlSingleStrand   singleStrand
 

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

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