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

method.c File Reference

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

Compounds

struct  rnamlMETHOD

Functions

rnamlMethodrnamlnewMethod ()
 Creates a new rnamlMethod structure.

rnamlMethodrnamlcloneMethod (const rnamlMethod *method)
 Clones a rnamlMethod struture.

void rnamldeleteMethod (rnamlMethod *method)
 Frees the rnamlMethod structure.

int rnamlisMethod (const rnamlObject *obj)
 Tells wheter the object is a rnamlMethod.

int rnamlequalsMethod (const rnamlMethod *left, const rnamlMethod *right)
 Tells if left and right are equals.

const char * rnamlgetMethodValue (const rnamlMethod *method)
 Gets the value method.

void rnamlsetMethodValue (rnamlMethod *method, const char *value)
 Sets the method value.

xmlcpgObjectrnamltoXMLMethod (const rnamlMethod *method)
 Translates the rnamlMethod structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlMethod* rnamlcloneMethod const rnamlMethod   method
 

Clones a rnamlMethod struture.

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

void rnamldeleteMethod rnamlMethod   method
 

Frees the rnamlMethod structure.

Parameters:
method  the rnamlMethod structure to free.

int rnamlequalsMethod const rnamlMethod   left,
const rnamlMethod   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* rnamlgetMethodValue const rnamlMethod   method
 

Gets the value method.

Parameters:
method  the rnamlMethod structure.
Returns:
the method value string or NULL if method is NULL or not an rnamlMethod.

int rnamlisMethod const rnamlObject   obj
 

Tells wheter the object is a rnamlMethod.

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

rnamlMethod* rnamlnewMethod  
 

Creates a new rnamlMethod structure.

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

void rnamlsetMethodValue rnamlMethod   method,
const char *    value
 

Sets the method value.

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

Parameters:
method  the rnamlMethod structure.
value  the method value.

xmlcpgObject* rnamltoXMLMethod const rnamlMethod   method
 

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

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