Bristol Wearable Computing

[ Home | Plans | Meetings | Members | Search | Papers | Links | CyberWear | LocoSoft]


Cron Driver

Purpose

The Cron driver (or temporal driver) allows a standard interface to time and date aquisition and matching functions.  The Cron driver supports five services, namely date, time, day and month retrieval, and also a general boolean matching function.

The boolean matching function is a single service that allows data of any valid Cron driver data to be passed to it.  The match function in the Cron driver will itself determine the type of data and then perform the correct type of match.

API

Note: that no match function is supplied in the API, as match functions will be called from the notes server in a way that does not allow an match function API to be used (Talk to Ed or Me for indepth description).

/***********************************************************/
/*Cron Driver API functions 1.00 - 25/8/98                 */
/*Michael McTernan 21/6/98                                 */
/*Cyber jacket research                                    */                  
/***********************************************************/
#ifndef CRONAPI
#define CRONAPI
/*---GetCronTime---
PROTOTYPE                                                  */
  char *GetCronTime();                                      /*
  
DESCRIPTION
  Returns a pointer to a string that contains the current time
  as a context string.
RETURNS
  NULL on error, otherwise a pointer to a strdup'ed string 
  that is the data.                                         */
  
/*---GetCronDate---
PROTOTYPE                                                  */
  char *GetCronDate();                                      /*
  
DESCRIPTION
  Returns a pointer to a string that contains the current date
  as a context string.
RETURNS
  NULL on error, otherwise a pointer to a strdup'ed string 
  that is the data.                                         */
  
/*---GetCronDay---
PROTOTYPE                                                  */
  char *GetCronDay();                                      /*
  
DESCRIPTION
  Returns a pointer to a string that contains the current day
  as a context string.
RETURNS
  NULL on error, otherwise a pointer to a strdup'ed string 
  that is the data.                                         */
  
/*---GetCronMonth---
PROTOTYPE                                                   */
  char *GetCronMonth();                                     /*
  
DESCRIPTION
  Returns a pointer to a string that contains the current month
  as a context string.
RETURNS
  NULL on error, otherwise a pointer to a strdup'ed string 
  that is the data.                                         */
  
#endif
 

Future Extensions


unicrest.gif (4191 bytes)

The material displayed is provided 'as is' and is subject to use restrictions.
For problems or questions regarding this web contact Cliff Randell.
Last updated: January 14, 2000.
logoep.gif (1404 bytes)
ęCopyright Hewlett-Packard 1997-2000.