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

resolution.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include "resolution.h"

Compounds

struct  rnamlRESOLUTION

Functions

rnamlResolutionrnamlnewResolution ()
 Creates a new rnamlResolution structure.

rnamlResolutionrnamlcloneResolution (const rnamlResolution *resolution)
 Clones a rnamlResolution struture.

void rnamldeleteResolution (rnamlResolution *resolution)
 Frees the rnamlResolution structure.

int rnamlisResolution (const rnamlObject *obj)
 Tells wheter the object is a rnamlResolution.

int rnamlequalsResolution (const rnamlResolution *left, const rnamlResolution *right)
 Tells if left and right are equals.

float rnamlgetResolutionValue (const rnamlResolution *resolution)
 Gets the resolution value.

void rnamlsetResolutionValue (rnamlResolution *resolution, float value)
 Sets the resolution value.

xmlcpgObjectrnamltoXMLResolution (const rnamlResolution *resolution)
 Translates the rnamlResolution structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlResolution* rnamlcloneResolution const rnamlResolution   resolution
 

Clones a rnamlResolution struture.

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

void rnamldeleteResolution rnamlResolution   resolution
 

Frees the rnamlResolution structure.

Parameters:
resolution  the rnamlResolution structure to free.

int rnamlequalsResolution const rnamlResolution   left,
const rnamlResolution   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.

float rnamlgetResolutionValue const rnamlResolution   resolution
 

Gets the resolution value.

Parameters:
resolution  the rnamlResolution structure.
Returns:
the resolution value or FLT_MAX if resolution is NULL or not an rnamlResolution.

int rnamlisResolution const rnamlObject   obj
 

Tells wheter the object is a rnamlResolution.

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

rnamlResolution* rnamlnewResolution  
 

Creates a new rnamlResolution structure.

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

void rnamlsetResolutionValue rnamlResolution   resolution,
float    value
 

Sets the resolution value.

Parameters:
resolution  the rnamlResolution structure.
value  the resolution value.

xmlcpgObject* rnamltoXMLResolution const rnamlResolution   resolution
 

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

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