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

revision.c File Reference

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

Compounds

struct  rnamlREVISION

Functions

rnamlRevisionrnamlnewRevision ()
 Creates a new rnamlRevision structure.

rnamlRevisionrnamlcloneRevision (const rnamlRevision *revision)
 Clones a rnamlRevision struture.

void rnamldeleteRevision (rnamlRevision *revision)
 Frees the rnamlRevision structure.

int rnamlisRevision (const rnamlObject *obj)
 Tells wheter the object is a rnamlRevision.

int rnamlequalsRevision (const rnamlRevision *left, const rnamlRevision *right)
 Tells if left and right are equals.

void rnamladdRevisionChild (rnamlRevision *revision, rnamlObject *obj)
 Adds a revision child.

xmlcpgListrnamlgetRevisionChildren (const rnamlRevision *revision)
 Gets the children from the revision collection.

xmlcpgObjectrnamltoXMLRevision (const rnamlRevision *revision)
 Translates the rnamlRevision structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

void rnamladdRevisionChild rnamlRevision   revision,
rnamlObject   child
 

Adds a revision child.

Parameters:
revision  the rnamlRevision structure.
child  the rnaml substructure converted into xmlcpgObject.

rnamlRevision* rnamlcloneRevision const rnamlRevision   revision
 

Clones a rnamlRevision struture.

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

void rnamldeleteRevision rnamlRevision   revision
 

Frees the rnamlRevision structure.

Parameters:
revision  the rnamlRevision structure to free.

int rnamlequalsRevision const rnamlRevision   left,
const rnamlRevision   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* rnamlgetRevisionChildren const rnamlRevision   revision
 

Gets the children from the revision collection.

Parameters:
revision  the rnamlRevision structure.
Returns:
the revision children collection

int rnamlisRevision const rnamlObject   obj
 

Tells wheter the object is a rnamlRevision.

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

rnamlRevision* rnamlnewRevision  
 

Creates a new rnamlRevision structure.

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

xmlcpgObject* rnamltoXMLRevision const rnamlRevision   revision
 

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

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