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

date.c File Reference

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

Compounds

struct  rnamlDATE

Functions

rnamlDaternamlnewDate ()
 Creates a new rnamlDate structure.

rnamlDaternamlcloneDate (const rnamlDate *date)
 Clones a rnamlDate struture.

void rnamldeleteDate (rnamlDate *date)
 Frees the rnamlDate structure.

int rnamlisDate (const rnamlObject *obj)
 Tells wheter the object is a rnamlDate.

int rnamlequalsDate (const rnamlDate *left, const rnamlDate *right)
 Tells if left and right are equals.

int rnamlgetDateDay (const rnamlDate *date)
 Gets the date day.

void rnamlsetDateDay (rnamlDate *date, int day)
 Sets the date day.

int rnamlgetDateMonth (const rnamlDate *date)
 Gets the date month.

void rnamlsetDateMonth (rnamlDate *date, int month)
 Sets the date month.

int rnamlgetDateYear (const rnamlDate *date)
 Gets the date year.

void rnamlsetDateYear (rnamlDate *date, int year)
 Sets the date year.

xmlcpgObjectrnamltoXMLDate (const rnamlDate *date)
 Translates the rnamlDate structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlDate* rnamlcloneDate const rnamlDate   date
 

Clones a rnamlDate struture.

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

void rnamldeleteDate rnamlDate   date
 

Frees the rnamlDate structure.

Parameters:
date  the rnamlDate structure to free.

int rnamlequalsDate const rnamlDate   left,
const rnamlDate   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.

int rnamlgetDateDay const rnamlDate   date
 

Gets the date day.

Parameters:
date  the rnamlDate structure.
Returns:
the date day or -1 if date is NULL or not an rnamlDate.

int rnamlgetDateMonth const rnamlDate   date
 

Gets the date month.

Parameters:
date  the rnamlDate structure.
Returns:
the date month or -1 if date is NULL or not an rnamlDate.

int rnamlgetDateYear const rnamlDate   date
 

Gets the date year.

Parameters:
date  the rnamlDate structure.
Returns:
the date year or -1 if date is NULL or not an rnamlDate.

int rnamlisDate const rnamlObject   obj
 

Tells wheter the object is a rnamlDate.

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

rnamlDate* rnamlnewDate  
 

Creates a new rnamlDate structure.

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

void rnamlsetDateDay rnamlDate   date,
int    day
 

Sets the date day.

Parameters:
date  the rnamlDate structure.
day  the date day.

void rnamlsetDateMonth rnamlDate   date,
int    month
 

Sets the date month.

Parameters:
date  the rnamlDate structure.
month  the date month.

void rnamlsetDateYear rnamlDate   date,
int    year
 

Sets the date year.

Parameters:
date  the rnamlDate structure.
year  the date year.

xmlcpgObject* rnamltoXMLDate const rnamlDate   date
 

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

Parameters:
molecule  the rnamlDate 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