ZOO-Project: service_conf.y File Reference
ZOO-Project
service_conf.y File Reference
#include <string>
#include <stdio.h>
#include <ctype.h>
#include <service.h>

Functions

void srerror (const char *s)
 Print on stderr the message and the line number of the error which occurred. More...
 
void usage (void)
 
int srlex (void)
 
int srlex_destroy (void)
 
 free (current_content)
 
 if (strncasecmp($2,"EndNested", 9)==0)
 
 if (strncasecmp($2,"DataInputs", 10)==0)
 
else if (strncasecmp($2,"DataOutputs", 11)==0)
 
else if (strncasecmp($2,"MetaData", 8)==0||strncasecmp($2,"AdditionalParameters", 8)==0)
 
else if (strncasecmp($2,"ComplexData", 11)==0||strncasecmp($2,"LiteralData", 10)==0||strncasecmp($2,"ComplexOutput", 13)==0||strncasecmp($2,"LiteralOutput", 12)==0||strncasecmp($2,"BoundingBoxOutput", 13)==0||strncasecmp($2,"BoundingBoxData", 12)==0)
 
else if (strncasecmp($2,"Default", 7)==0)
 
else if (strncasecmp($2,"Supported", 9)==0)
 
 if (curr_key!=NULL)
 
 if ($1!=NULL)
 
int getServiceFromFile (maps *conf, const char *file, service **service)
 Parse a ZCFG file and fill the service structure. More...
 

Variables

static int defaultsc =0
 
static bool wait_maincontent =true
 
static bool wait_mainmetadata =false
 
static bool wait_mainap =false
 
static bool wait_metadata =false
 
static bool wait_ap =false
 
static bool wait_nested =false
 
static bool wait_inputs =false
 
static bool wait_defaults =false
 
static bool wait_supporteds =false
 
static bool wait_outputs =false
 
static bool wait_data =false
 
static servicemy_service =NULL
 
static mapcurrent_content =NULL
 
static elementscurrent_element =NULL
 
static char * curr_key
 
static int debug =0
 
static int data =-1
 
static int previous_data =0
 
static int current_data =0
 
static int nested_level =0
 
int srdebug
 
char srtext []
 
int srlineno
 
FILE * srin
 
union {
char * s
 
char * chaine
 
char * key
 
char * val
 
document
 COMMENT. More...
 
miscetoile __pad0__
 
miscetoile PI
 
element __pad1__
 
STag __pad2__
 
my_service metadata =NULL
 
my_service additional_parameters =NULL
 
Attributeetoile __pad3__
 
attribute __pad4__
 
EmptyElemTag __pad5__
 
EmptyElemTag Default
 
EmptyElemTag ETag
 
EmptyElemTag DataInputs
 
contentetoile __pad6__
 
texteinterbalise __pad7__
 
pair __pad8__
 
pair PAIR FOUND n
 
 EPAIR
 
processid __pad9__
 
 else
 

Function Documentation

free ( current_content  )
int getServiceFromFile ( maps conf,
const char *  file,
service **  service 
)

Parse a ZCFG file and fill the service structure.

Author : Gérald FENOY.

Parameters
confthe conf maps containing the main.cfg settings
filethe fullpath to the ZCFG file
servicethe service structure to fill
Returns
0 on success, -1 on failure
if ( strncasecmp($2,"EndNested", 9)  = =0)
if ( strncasecmp($2,"DataInputs", 10)  = =0)
else if ( strncasecmp($2,"DataOutputs", 11)  = =0)
else if ( strncasecmp($2,"MetaData", 8)  = =0 || strncasecmp($2,"AdditionalParameters",8)==0)
else if ( strncasecmp($2,"ComplexData", 11)  = =0 || strncasecmp($2,"LiteralData",10)==0 || strncasecmp($2,"ComplexOutput",13)==0 || strncasecmp($2,"LiteralOutput",12)==0 || strncasecmp($2,"BoundingBoxOutput",13)==0 || strncasecmp($2,"BoundingBoxData",12)==0)
else if ( strncasecmp($2,"Default", 7)  = =0)
else if ( strncasecmp($2,"Supported", 9)  = =0)
if ( curr_key!  = NULL)
if (   $1! = NULL)
void srerror ( const char *  s)

Print on stderr the message and the line number of the error which occurred.

Parameters
sthe error message
int srlex ( void  )
int srlex_destroy ( void  )
void usage ( void  )

Variable Documentation

miscetoile __pad0__
element __pad1__
STag __pad2__
Attributeetoile __pad3__
attribute __pad4__
EmptyElemTag __pad5__
contentetoile __pad6__
texteinterbalise __pad7__
pair __pad8__
processid __pad9__
my_service additional_parameters =NULL
char* curr_key
static
freeMap & current_content =NULL
static
int current_data =0
static
elements* current_element =NULL
static
int data =-1
static
EmptyElemTag DataInputs
int debug =0
static
EmptyElemTag Default
int defaultsc =0
static
union { ... } document

COMMENT.

else
EPAIR
EmptyElemTag ETag
my_service metadata =NULL
service* my_service =NULL
static
pair PAIR FOUND n
int nested_level =0
static
contentetoile PI
Initial value:
{}
| {}
int previous_data =0
static
int srdebug
FILE* srin
int srlineno
char srtext[]
bool wait_ap =false
static
bool wait_data =false
static
bool wait_defaults =false
static
bool wait_inputs =false
static
bool wait_mainap =false
static
wait_maincontent =true
static
bool wait_mainmetadata =false
static
bool wait_metadata =false
static
bool wait_nested =false
static
bool wait_outputs =false
static
bool wait_supporteds =false
static

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png