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

identity.c File Reference

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

Compounds

struct  rnamlIDENTITY

Functions

rnamlIdentityrnamlnewIdentity ()
 Creates a new rnamlIdentity structure.

rnamlIdentityrnamlcloneIdentity (const rnamlIdentity *identity)
 Clones a rnamlIdentity struture.

void rnamldeleteIdentity (rnamlIdentity *identity)
 Frees the rnamlIdentity structure.

int rnamlisIdentity (const rnamlObject *obj)
 Tells wheter the object is a rnamlIdentity.

int rnamlequalsIdentity (const rnamlIdentity *left, const rnamlIdentity *right)
 Tells if left and right are equals.

const char * rnamlgetIdentityName (const rnamlIdentity *identity)
 Gets the name from the identity.

void rnamlsetIdentityName (rnamlIdentity *identity, const char *name)
 Sets the identity name.

rnamlTaxonomyrnamlgetIdentityTaxonomy (rnamlIdentity *identity)
 Gets the taxonomy from the identity.

void rnamlsetIdentityTaxonomy (rnamlIdentity *identity, rnamlTaxonomy *taxonomy)
 Sets the identity taxonomy.

xmlcpgObjectrnamltoXMLIdentity (const rnamlIdentity *identity)
 Translates the rnamlIdentity structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlIdentity* rnamlcloneIdentity const rnamlIdentity   identity
 

Clones a rnamlIdentity struture.

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

void rnamldeleteIdentity rnamlIdentity   identity
 

Frees the rnamlIdentity structure.

Parameters:
identity  the rnamlIdentity structure to free.

int rnamlequalsIdentity const rnamlIdentity   left,
const rnamlIdentity   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* rnamlgetIdentityName const rnamlIdentity   identity
 

Gets the name from the identity.

Parameters:
identity  the rnamlIdentity structure.
Returns:
the identity name string or NULL if identity is NULL or not an rnamlIdentity.

rnamlTaxonomy* rnamlgetIdentityTaxonomy rnamlIdentity   identity
 

Gets the taxonomy from the identity.

Parameters:
identity  the rnamlIdentity structure.
Returns:
the identity taxonomy is NULL or if identity is NULL or not an rnamlIdentity.

int rnamlisIdentity const rnamlObject   obj
 

Tells wheter the object is a rnamlIdentity.

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

rnamlIdentity* rnamlnewIdentity  
 

Creates a new rnamlIdentity structure.

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

void rnamlsetIdentityName rnamlIdentity   identity,
const char *    name
 

Sets the identity name.

The previous identity name is freed and a copy of name is generated.

Parameters:
identity  the rnamlIdentity structure.
name  the identity name.

void rnamlsetIdentityTaxonomy rnamlIdentity   identity,
rnamlTaxonomy   taxonomy
 

Sets the identity taxonomy.

The previous taxonomy info is freed

Parameters:
identity  the rnamlIdentity structure.
identity  the identity taxonomy.

xmlcpgObject* rnamltoXMLIdentity const rnamlIdentity   identity
 

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

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


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