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

author.h File Reference

#include "person.h"
#include "object.h"
#include "xmlcpg.h"

Go to the source code of this file.

Typedefs

typedef rnamlAUTHOR rnamlAuthor
 Rnaml structure containing the author informations.


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.


Typedef Documentation

typedef struct rnamlAUTHOR rnamlAuthor
 

Rnaml structure containing the author informations.


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