/home/gigerk/eth/sa2/xpsh-map-0.0.1/src/xpsh-util.c File Reference

#include "xpsh-util.h"

Functions

int eval_getinput (char buf[], int maxlen)
 reads a character of the input-string
void set_input_string (const char *inputstring)
 sets the input string for Lex
void addNS (char nametest[], const char *clarkuri)
 adds a namespace declaration
void declareNamespacesClark (QueryContext Q)
 declare the Clark-Namespaces in SXP
void clearNamespaces ()
 clean up the temporary namespaces
void helpMsg (void)
 prints a help message about this piece of software
void versionMsg (void)
 prints the version-string of the program

Detailed Description

Author:
Kaspar Giger
Date:
04-2006

Function Documentation

void addNS char  nametest[],
const char *  clarkuri
 

this is used later, when the Clark-Namespaces are declared for use in SXP. The Clark-Namespaces are mapped to a prefix which will be bound to the URI later.

Parameters:
[out] nametest the string where to put the mapped prefix
clarkuri the URI of the namespace (including the curly brackets)

void declareNamespacesClark QueryContext  Q  ) 
 

Parameters:
Q the SXP Query Context

int eval_getinput char  buf[],
int  maxlen
 

Remarks:
used by Lex
Parameters:
buf the buffer where to place the character
maxlen the maximum number of characters to read
Returns:
true if successful

void set_input_string const char *  inputstring  ) 
 

Parameters:
inputstring the input string

void versionMsg void   ) 
 

Remarks:
this version information is hardcoded, so has to be changed each time the program is updated/changed


Generated on Mon Apr 17 18:39:21 2006 for xpsh-map by  doxygen 1.4.6