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

databaseentry.c File Reference

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

Compounds

struct  rnamlDATABASEENTRY

Functions

rnamlDataBaseEntryrnamlnewDataBaseEntry ()
 Creates a new rnamlDataBaseEntry structure.

rnamlDataBaseEntryrnamlcloneDataBaseEntry (const rnamlDataBaseEntry *dataBaseEntry)
 Clones a rnamlDataBaseEntry struture.

void rnamldeleteDataBaseEntry (rnamlDataBaseEntry *dataBaseEntry)
 Frees the rnamlDataBaseEntry structure.

int rnamlisDataBaseEntry (const rnamlObject *obj)
 Tells wheter the object is a rnamlDataBaseEntry.

int rnamlequalsDataBaseEntry (const rnamlDataBaseEntry *left, const rnamlDataBaseEntry *right)
 Tells if left and right are equals.

const char * rnamlgetDataBaseEntryId (const rnamlDataBaseEntry *dataBaseEntry)
 Gets the dataBaseEntry id.

void rnamlsetDataBaseEntryId (rnamlDataBaseEntry *dataBaseEntry, const char *id)
 Sets the dataBaseEntry id.

const char * rnamlgetDataBaseEntryDataBase (const rnamlDataBaseEntry *dataBaseEntry)
 Gets the dataBase from the dataBaseEntry.

void rnamlsetDataBaseEntryDataBase (rnamlDataBaseEntry *dataBaseEntry, const char *dataBase)
 Sets the dataBaseEntry dataBase.

const char * rnamlgetDataBaseEntryEntry (const rnamlDataBaseEntry *dataBaseEntry)
 Gets the entry from the dataBaseEntry.

void rnamlsetDataBaseEntryEntry (rnamlDataBaseEntry *dataBaseEntry, const char *entry)
 Sets the dataBaseEntry entry.

rnamlPathrnamlgetDataBaseEntryPath (rnamlDataBaseEntry *dataBaseEntry)
 Gets the path from the dataBaseEntry.

void rnamlsetDataBaseEntryPath (rnamlDataBaseEntry *dataBaseEntry, rnamlPath *path)
 Sets the dataBaseEntry path.

xmlcpgObjectrnamltoXMLDataBaseEntry (const rnamlDataBaseEntry *dataBaseEntry)
 Translates the rnamlDataBaseEntry structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlDataBaseEntry* rnamlcloneDataBaseEntry const rnamlDataBaseEntry   databaseentry
 

Clones a rnamlDataBaseEntry struture.

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

void rnamldeleteDataBaseEntry rnamlDataBaseEntry   databaseentry
 

Frees the rnamlDataBaseEntry structure.

Parameters:
databaseentry  the rnamlDataBaseEntry structure to free.

int rnamlequalsDataBaseEntry const rnamlDataBaseEntry   left,
const rnamlDataBaseEntry   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* rnamlgetDataBaseEntryDataBase const rnamlDataBaseEntry   dataBaseEntry
 

Gets the dataBase from the dataBaseEntry.

Parameters:
dataBaseEntry  the rnamlDataBaseEntry structure.
Returns:
the dataBaseEntry dataBase string or NULL if dataBaseEntry is NULL or not an rnamlDataBaseEntry.

const char* rnamlgetDataBaseEntryEntry const rnamlDataBaseEntry   dataBaseEntry
 

Gets the entry from the dataBaseEntry.

Parameters:
dataBaseEntry  the rnamlDataBaseEntry structure.
Returns:
the dataBaseEntry entry string or NULL if dataBaseEntry is NULL or not an rnamlDataBaseEntry.

const char* rnamlgetDataBaseEntryId const rnamlDataBaseEntry   dataBaseEntry
 

Gets the dataBaseEntry id.

Parameters:
dataBaseEntry  the rnamlDataBaseEntry structure.
Returns:
the dataBaseEntry id string or NULL if dataBaseEntry is NULL or not an rnamlDataBaseEntry.

rnamlPath* rnamlgetDataBaseEntryPath rnamlDataBaseEntry   dataBaseEntry
 

Gets the path from the dataBaseEntry.

Parameters:
dataBaseEntry  the rnamlDataBaseEntry structure.
Returns:
the dataBaseEntry path is NULL or if dataBaseEntry is NULL or not an rnamlDataBaseEntry.

int rnamlisDataBaseEntry const rnamlObject   obj
 

Tells wheter the object is a rnamlDataBaseEntry.

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

rnamlDataBaseEntry* rnamlnewDataBaseEntry  
 

Creates a new rnamlDataBaseEntry structure.

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

void rnamlsetDataBaseEntryDataBase rnamlDataBaseEntry   dataBaseEntry,
const char *    dataBase
 

Sets the dataBaseEntry dataBase.

The previous dataBaseEntry dataBase is freed and a copy of dataBase is generated.

Parameters:
dataBaseEntry  the rnamlDataBaseEntry structure.
dataBase  the dataBaseEntry dataBase.

void rnamlsetDataBaseEntryEntry rnamlDataBaseEntry   dataBaseEntry,
const char *    entry
 

Sets the dataBaseEntry entry.

The previous dataBaseEntry entry is freed and a copy of entry is generated.

Parameters:
dataBaseEntry  the rnamlDataBaseEntry structure.
entry  the dataBaseEntry entry.

void rnamlsetDataBaseEntryId rnamlDataBaseEntry   dataBaseEntry,
const char *    id
 

Sets the dataBaseEntry id.

The previous dataBaseEntry id is freed and a copy of id is generated.

Parameters:
dataBaseEntry  the rnamlDataBaseEntry structure.
id  the dataBaseEntry id.

void rnamlsetDataBaseEntryPath rnamlDataBaseEntry   dataBaseEntry,
rnamlPath   path
 

Sets the dataBaseEntry path.

The previous path info is freed

Parameters:
dataBaseEntry  the rnamlDataBaseEntry structure.
dataBaseEntry  the dataBaseEntry path.

xmlcpgObject* rnamltoXMLDataBaseEntry const rnamlDataBaseEntry   dataBaseEntry
 

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

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


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