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

pcdata.c File Reference

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

Compounds

struct  rnamlPCDATA

Functions

rnamlPcDatarnamlnewPcData ()
 Creates a new rnamlPcData structure.

rnamlPcDatarnamlclonePcData (const rnamlPcData *pcData)
 Clones a rnamlPcData struture.

void rnamldeletePcData (rnamlPcData *pcData)
 Frees the rnamlPcData structure.

int rnamlisPcData (const rnamlObject *obj)
 Tells wheter the object is a rnamlPcData.

int rnamlequalsPcData (const rnamlPcData *left, const rnamlPcData *right)
 Tells if left and right are equals.

const char * rnamlgetPcDataValue (const rnamlPcData *pcData)
 Gets the value pcData.

void rnamlsetPcDataValue (rnamlPcData *pcData, const char *value)
 Sets the pcData value.

xmlcpgObjectrnamltoXMLPcData (const rnamlPcData *pcData)
 Translates the rnamlPcData structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlPcData* rnamlclonePcData const rnamlPcData   pcdata
 

Clones a rnamlPcData struture.

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

void rnamldeletePcData rnamlPcData   pcdata
 

Frees the rnamlPcData structure.

Parameters:
pcdata  the rnamlPcData structure to free.

int rnamlequalsPcData const rnamlPcData   left,
const rnamlPcData   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* rnamlgetPcDataValue const rnamlPcData   pcData
 

Gets the value pcData.

Parameters:
pcData  the rnamlPcData structure.
Returns:
the pcData value string or NULL if pcData is NULL or not an rnamlPcData.

int rnamlisPcData const rnamlObject   obj
 

Tells wheter the object is a rnamlPcData.

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

rnamlPcData* rnamlnewPcData  
 

Creates a new rnamlPcData structure.

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

void rnamlsetPcDataValue rnamlPcData   pcData,
const char *    value
 

Sets the pcData value.

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

Parameters:
pcData  the rnamlPcData structure.
value  the pcData value.

xmlcpgObject* rnamltoXMLPcData const rnamlPcData   pcData
 

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

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


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