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

affiliation.h File Reference

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

Go to the source code of this file.

Typedefs

typedef rnamlAFFILIATION rnamlAffiliation
 Rnaml structure containing the affiliation informations.


Functions

rnamlAffiliationrnamlnewAffiliation ()
 Creates a new rnamlAffiliation structure.

rnamlAffiliationrnamlcloneAffiliation (const rnamlAffiliation *affiliation)
 Clones a rnamlAffiliation struture.

void rnamldeleteAffiliation (rnamlAffiliation *affiliation)
 Frees the rnamlAffiliation structure.

int rnamlisAffiliation (const rnamlObject *obj)
 Tells wheter the object is a rnamlAffiliation.

int rnamlequalsAffiliation (const rnamlAffiliation *left, const rnamlAffiliation *right)
 Tells if left and right are equals.

const char * rnamlgetAffiliationValue (const rnamlAffiliation *affiliation)
 Gets the value affiliation.

void rnamlsetAffiliationValue (rnamlAffiliation *affiliation, const char *value)
 Sets the affiliation value.

xmlcpgObjectrnamltoXMLAffiliation (const rnamlAffiliation *affiliation)
 Translates the rnamlAffiliation structure into a xmlcpgElement conforming to the RNAML standard.


Typedef Documentation

typedef struct rnamlAFFILIATION rnamlAffiliation
 

Rnaml structure containing the affiliation informations.


Function Documentation

rnamlAffiliation* rnamlcloneAffiliation const rnamlAffiliation   affiliation
 

Clones a rnamlAffiliation struture.

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

void rnamldeleteAffiliation rnamlAffiliation   affiliation
 

Frees the rnamlAffiliation structure.

Parameters:
affiliation  the rnamlAffiliation structure to free.

int rnamlequalsAffiliation const rnamlAffiliation   left,
const rnamlAffiliation   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.

const char* rnamlgetAffiliationValue const rnamlAffiliation   affiliation
 

Gets the value affiliation.

Parameters:
affiliation  the rnamlAffiliation structure.
Returns:
the affiliation value string or NULL if affiliation is NULL or not an rnamlAffiliation.

int rnamlisAffiliation const rnamlObject   obj
 

Tells wheter the object is a rnamlAffiliation.

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

rnamlAffiliation* rnamlnewAffiliation  
 

Creates a new rnamlAffiliation structure.

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

void rnamlsetAffiliationValue rnamlAffiliation   affiliation,
const char *    value
 

Sets the affiliation value.

The previous affiliation value is freed and a copy of value is generated.

Parameters:
affiliation  the rnamlAffiliation structure.
value  the affiliation value.

xmlcpgObject* rnamltoXMLAffiliation const rnamlAffiliation   affiliation
 

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

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


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