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

numberingsystem.c File Reference

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

Compounds

struct  rnamlNUMBERINGSYSTEM

Functions

rnamlNumberingSystemrnamlnewNumberingSystem ()
 Creates a new rnamlNumberingSystem structure.

rnamlNumberingSystemrnamlcloneNumberingSystem (const rnamlNumberingSystem *numberingSystem)
 Clones a rnamlNumberingSystem struture.

void rnamldeleteNumberingSystem (rnamlNumberingSystem *numberingSystem)
 Frees the rnamlNumberingSystem structure.

int rnamlisNumberingSystem (const rnamlObject *obj)
 Tells wheter the object is a rnamlNumberingSystem.

int rnamlequalsNumberingSystem (const rnamlNumberingSystem *left, const rnamlNumberingSystem *right)
 Tells if left and right are equals.

const char * rnamlgetNumberingSystemId (const rnamlNumberingSystem *numberingSystem)
 Gets the numberingSystem id.

void rnamlsetNumberingSystemId (rnamlNumberingSystem *numberingSystem, const char *id)
 Sets the numberingSystem id.

int rnamlgetNumberingSystemUsedInFile (const rnamlNumberingSystem *numberingSystem)
 Gets the numberingSystem usedInFileflag.

void rnamlsetNumberingSystemUsedInFile (rnamlNumberingSystem *numberingSystem, int usedInFile)
 Sets the numberingSystem usedInFile flag.

void rnamladdNumberingSystemChild (rnamlNumberingSystem *numberingSystem, rnamlObject *child)
 Adds a child into a numberingSystem.

xmlcpgListrnamlgetNumberingSystemChildren (rnamlNumberingSystem *numberingSystem)
 Gets the numberingSystem's object list.

xmlcpgObjectrnamltoXMLNumberingSystem (const rnamlNumberingSystem *numberingSystem)
 Translates the rnamlNumberingSystem structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

void rnamladdNumberingSystemChild rnamlNumberingSystem   numberingSystem,
rnamlObject   child
 

Adds a child into a numberingSystem.

Parameters:
numberingSystem  the rnamlNumberingSystem structure.
child  the rnamlObject structure.

rnamlNumberingSystem* rnamlcloneNumberingSystem const rnamlNumberingSystem   numberingsystem
 

Clones a rnamlNumberingSystem struture.

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

void rnamldeleteNumberingSystem rnamlNumberingSystem   numberingsystem
 

Frees the rnamlNumberingSystem structure.

Parameters:
numberingsystem  the rnamlNumberingSystem structure to free.

int rnamlequalsNumberingSystem const rnamlNumberingSystem   left,
const rnamlNumberingSystem   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* rnamlgetNumberingSystemChildren rnamlNumberingSystem   numberingSystem
 

Gets the numberingSystem's object list.

Parameters:
numberingSystem  the rnamlNumberingSystem structure.
Returns:
the numberingSystem's object xmlcpgList or NULL if something goes wrong.

const char* rnamlgetNumberingSystemId const rnamlNumberingSystem   numberingSystem
 

Gets the numberingSystem id.

Parameters:
numberingSystem  the rnamlNumberingSystem structure.
Returns:
the numberingSystem id string or NULL if numberingSystem is NULL or not an rnamlNumberingSystem.

int rnamlgetNumberingSystemUsedInFile const rnamlNumberingSystem   numberingSystem
 

Gets the numberingSystem usedInFileflag.

Parameters:
numberingSystem  the rnamlNumberingSystem structure.
Returns:
the numberingSystem usedInFile flag or -1 if numberingSystem is NULL or not an rnamlNumberingSystem.

int rnamlisNumberingSystem const rnamlObject   obj
 

Tells wheter the object is a rnamlNumberingSystem.

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

rnamlNumberingSystem* rnamlnewNumberingSystem  
 

Creates a new rnamlNumberingSystem structure.

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

void rnamlsetNumberingSystemId rnamlNumberingSystem   numberingSystem,
const char *    id
 

Sets the numberingSystem id.

The previous numberingSystem id is freed and a copy of id is generated.

Parameters:
numberingSystem  the rnamlNumberingSystem structure.
id  the numberingSystem id.

void rnamlsetNumberingSystemUsedInFile rnamlNumberingSystem   numberingSystem,
int    usedInFile
 

Sets the numberingSystem usedInFile flag.

Any non zero value will be recorded as 1. *

Parameters:
numberingSystem  the rnamlNumberingSystem structure.
usedInFile  the numberingSystem usedInFile flag.

xmlcpgObject* rnamltoXMLNumberingSystem const rnamlNumberingSystem   numberingSystem
 

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

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


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