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

modelinfo.c File Reference

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

Compounds

struct  rnamlMODELINFO

Functions

rnamlModelInfornamlnewModelInfo ()
 Creates a new rnamlModelInfo structure.

rnamlModelInfornamlcloneModelInfo (const rnamlModelInfo *modelInfo)
 Clones a rnamlModelInfo struture.

void rnamldeleteModelInfo (rnamlModelInfo *modelInfo)
 Frees the rnamlModelInfo structure.

int rnamlisModelInfo (const rnamlObject *obj)
 Tells wheter the object is a rnamlModelInfo.

int rnamlequalsModelInfo (const rnamlModelInfo *left, const rnamlModelInfo *right)
 Tells if left and right are equals.

rnamlMethodrnamlgetModelInfoMethod (rnamlModelInfo *modelInfo)
 Gets the method from the modelInfo.

void rnamlsetModelInfoMethod (rnamlModelInfo *modelInfo, rnamlMethod *method)
 Sets the modelInfo method.

rnamlResolutionrnamlgetModelInfoResolution (rnamlModelInfo *modelInfo)
 Gets the resolution from the modelInfo.

void rnamlsetModelInfoResolution (rnamlModelInfo *modelInfo, rnamlResolution *resolution)
 Sets the modelInfo resolution.

void rnamladdModelInfoFreeEnergy (rnamlModelInfo *modelInfo, rnamlFreeEnergy *freeEnergy)
 Adds a freeEnergy into a modelInfo.

xmlcpgListrnamlgetModelInfoFreeEnergies (rnamlModelInfo *modelInfo)
 Gets the modelInfo's freeEnergy list.

xmlcpgObjectrnamltoXMLModelInfo (const rnamlModelInfo *modelInfo)
 Translates the rnamlModelInfo structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

void rnamladdModelInfoFreeEnergy rnamlModelInfo   modelInfo,
rnamlFreeEnergy   freeEnergy
 

Adds a freeEnergy into a modelInfo.

Parameters:
modelInfo  the rnamlModelInfo structure.
freeEnergy  the rnamlFreeEnergy structure.

rnamlModelInfo* rnamlcloneModelInfo const rnamlModelInfo   modelinfo
 

Clones a rnamlModelInfo struture.

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

void rnamldeleteModelInfo rnamlModelInfo   modelinfo
 

Frees the rnamlModelInfo structure.

Parameters:
modelinfo  the rnamlModelInfo structure to free.

int rnamlequalsModelInfo const rnamlModelInfo   left,
const rnamlModelInfo   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* rnamlgetModelInfoFreeEnergies rnamlModelInfo   modelInfo
 

Gets the modelInfo's freeEnergy list.

Parameters:
modelInfo  the rnamlModelInfo structure.
Returns:
the modelInfo's freeEnergy xmlcpgList or NULL if something goes wrong.

rnamlMethod* rnamlgetModelInfoMethod rnamlModelInfo   modelInfo
 

Gets the method from the modelInfo.

Parameters:
modelInfo  the rnamlModelInfo structure.
Returns:
the modelInfo method is NULL or if modelInfo is NULL or not an rnamlModelInfo.

rnamlResolution* rnamlgetModelInfoResolution rnamlModelInfo   modelInfo
 

Gets the resolution from the modelInfo.

Parameters:
modelInfo  the rnamlModelInfo structure.
Returns:
the modelInfo resolution is NULL or if modelInfo is NULL or not an rnamlModelInfo.

int rnamlisModelInfo const rnamlObject   obj
 

Tells wheter the object is a rnamlModelInfo.

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

rnamlModelInfo* rnamlnewModelInfo  
 

Creates a new rnamlModelInfo structure.

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

void rnamlsetModelInfoMethod rnamlModelInfo   modelInfo,
rnamlMethod   method
 

Sets the modelInfo method.

The previous method info is freed

Parameters:
modelInfo  the rnamlModelInfo structure.
modelInfo  the modelInfo method.

void rnamlsetModelInfoResolution rnamlModelInfo   modelInfo,
rnamlResolution   resolution
 

Sets the modelInfo resolution.

The previous resolution info is freed

Parameters:
modelInfo  the rnamlModelInfo structure.
modelInfo  the modelInfo resolution.

xmlcpgObject* rnamltoXMLModelInfo const rnamlModelInfo   modelInfo
 

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

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


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