ZOO-Project
Functions | Variables
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()

free ( current_content  )

◆ getServiceFromFile()

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() [1/9]

if (   $1! = NULL)

◆ if() [2/9]

if ( curr_key!  = NULL)

◆ if() [3/9]

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)

◆ if() [4/9]

if ( strncasecmp( $2,"DataInputs", 10)  = =0)

◆ if() [5/9]

else if ( strncasecmp( $2,"DataOutputs", 11)  = =0)

◆ if() [6/9]

else if ( strncasecmp( $2,"Default", 7)  = =0)

◆ if() [7/9]

if ( strncasecmp( $2,"EndNested", 9)  = =0)

◆ if() [8/9]

else if ( strncasecmp( $2,"MetaData", 8)  = =0 || strncasecmp($2,"AdditionalParameters",8)==0)

◆ if() [9/9]

else if ( strncasecmp( $2,"Supported", 9)  = =0)

◆ srerror()

void srerror ( const char *  s)

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

Parameters
sthe error message

◆ srlex()

int srlex ( void  )

◆ srlex_destroy()

int srlex_destroy ( void  )

◆ usage()

void usage ( void  )

Variable Documentation

◆ __pad0__

miscetoile __pad0__

◆ __pad1__

element __pad1__

◆ __pad2__

STag __pad2__

◆ __pad3__

Attributeetoile __pad3__

◆ __pad4__

attribute __pad4__

◆ __pad5__

EmptyElemTag __pad5__

◆ __pad6__

contentetoile __pad6__

◆ __pad7__

texteinterbalise __pad7__

◆ __pad8__

pair __pad8__

◆ __pad9__

processid __pad9__

◆ additional_parameters

my_service additional_parameters =NULL

◆ curr_key

char* curr_key
static

◆ current_content

freeMap & current_content =NULL
static

◆ current_data

int current_data =0
static

◆ current_element

elements* current_element =NULL
static

◆ data

int data =-1
static

◆ DataInputs

EmptyElemTag DataInputs

◆ debug

int debug =0
static

◆ Default

EmptyElemTag Default

◆ defaultsc

int defaultsc =0
static

◆ document

union { ... } document

COMMENT.

◆ else

else

◆ EPAIR

EPAIR

◆ ETag

EmptyElemTag ETag

◆ metadata

my_service metadata =NULL

◆ my_service

service* my_service =NULL
static

◆ n

pair PAIR FOUND n

◆ nested_level

int nested_level =0
static

◆ PI

contentetoile PI
Initial value:
{}
| {}

◆ previous_data

int previous_data =0
static

◆ srdebug

int srdebug

◆ srin

FILE* srin

◆ srlineno

int srlineno

◆ srtext

char srtext[]

◆ wait_ap

bool wait_ap =false
static

◆ wait_data

bool wait_data =false
static

◆ wait_defaults

bool wait_defaults =false
static

◆ wait_inputs

bool wait_inputs =false
static

◆ wait_mainap

bool wait_mainap =false
static

◆ wait_maincontent

wait_maincontent =true
static

◆ wait_mainmetadata

bool wait_mainmetadata =false
static

◆ wait_metadata

bool wait_metadata =false
static

◆ wait_nested

bool wait_nested =false
static

◆ wait_outputs

bool wait_outputs =false
static

◆ wait_supporteds

bool wait_supporteds =false
static