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

author.c File Reference

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

Compounds

struct  rnamlAUTHOR

Functions

rnamlAuthorrnamlnewAuthor ()
 Creates a new rnamlAuthor structure.

rnamlAuthorrnamlcloneAuthor (const rnamlAuthor *author)
 Clones a rnamlAuthor struture.

void rnamldeleteAuthor (rnamlAuthor *author)
 Frees the rnamlAuthor structure.

int rnamlisAuthor (const rnamlObject *obj)
 Tells wheter the object is a rnamlAuthor.

int rnamlequalsAuthor (const rnamlAuthor *left, const rnamlAuthor *right)
 Tells if left and right are equals.

rnamlPersonrnamlgetAuthorPerson (rnamlAuthor *author)
 Gets the person from the author.

void rnamlsetAuthorPerson (rnamlAuthor *author, rnamlPerson *person)
 Sets the author person.

xmlcpgObjectrnamltoXMLAuthor (const rnamlAuthor *author)
 Translates the rnamlAuthor structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlAuthor* rnamlcloneAuthor const rnamlAuthor   author
 

Clones a rnamlAuthor struture.

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

void rnamldeleteAuthor rnamlAuthor   author
 

Frees the rnamlAuthor structure.

Parameters:
author  the rnamlAuthor structure to free.

int rnamlequalsAuthor const rnamlAuthor   left,
const rnamlAuthor   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.

rnamlPerson* rnamlgetAuthorPerson rnamlAuthor   author
 

Gets the person from the author.

Parameters:
author  the rnamlAuthor structure.
Returns:
the author person is NULL or if author is NULL or not an rnamlAuthor.

int rnamlisAuthor const rnamlObject   obj
 

Tells wheter the object is a rnamlAuthor.

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

rnamlAuthor* rnamlnewAuthor  
 

Creates a new rnamlAuthor structure.

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

void rnamlsetAuthorPerson rnamlAuthor   author,
rnamlPerson   person
 

Sets the author person.

The previous person info is freed

Parameters:
author  the rnamlAuthor structure.
author  the author person.

xmlcpgObject* rnamltoXMLAuthor const rnamlAuthor   author
 

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

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


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