ZOO-Project
Functions
service_internal_r.c File Reference
#include "service_internal_r.h"

Functions

void jump_to_toplevel (void)
 
void init_zoo (SEXP conf, SEXP outputs)
 
int zoo_r_support (maps **main_conf, map *request, service *s, maps **real_inputs, maps **real_outputs)
 Load a R script then run the function corresponding to the service by passing the conf, inputs and outputs parameters by reference. More...
 
char ** listMapsKeys (maps *m)
 
char ** listMapKeys (map *m)
 
SEXP RList_FromMaps (maps *t)
 Convert a maps to a R List. More...
 
SEXP RList_FromMap (map *t)
 Convert a map to a R List. More...
 
mapsmapsFromRList (SEXP t)
 Convert a R List to a maps. More...
 
mapmapFromRList (SEXP t)
 Convert a R List to a map. More...
 
SEXP RTranslate (SEXP str)
 Use the ZOO-Services messages translation function from the R environment. More...
 
SEXP RUpdateStatus (SEXP confdict, SEXP status)
 Update the ongoing status of a running service from the R environment. More...
 

Function Documentation

void init_zoo ( SEXP  conf,
SEXP  outputs 
)
void jump_to_toplevel ( void  )
char** listMapKeys ( map m)
char** listMapsKeys ( maps m)
map* mapFromRList ( SEXP  t)

Convert a R List to a map.

Parameters
tthe PyDictObject to convert
Returns
a new map containing the converted PyDictObject
Warning
make sure to free resources returned by this function
maps* mapsFromRList ( SEXP  t)

Convert a R List to a maps.

Parameters
tthe PyDictObject to convert
Returns
a new maps containing the converted PyDictObject
Warning
make sure to free resources returned by this function
SEXP RList_FromMap ( map t)

Convert a map to a R List.

Parameters
tthe map to convert
Returns
a new SEXP containing the converted maps
Warning
make sure to free resources returned by this function
SEXP RList_FromMaps ( maps t)

Convert a maps to a R List.

Parameters
tthe maps to convert
Returns
a new SEXP containing the converted maps
See also
RList_FromMap
Warning
make sure to free resources returned by this function
SEXP RTranslate ( SEXP  str)

Use the ZOO-Services messages translation function from the R environment.

Parameters
strthe R string passed from the R environment
Returns
a new R string containing the translated value
See also
_ss
SEXP RUpdateStatus ( SEXP  confdict,
SEXP  status 
)

Update the ongoing status of a running service from the R environment.

Parameters
confdictthe R arguments passed from the R environment
statusthe R arguments passed from the R environment
Returns
Nil to the Python environment
See also
_updateStatus
int zoo_r_support ( maps **  main_conf,
map request,
service s,
maps **  real_inputs,
maps **  real_outputs 
)

Load a R script then run the function corresponding to the service by passing the conf, inputs and outputs parameters by reference.

Parameters
main_confthe conf maps containing the main.cfg settings
requestthe map containing the HTTP request
sthe service structure
real_inputsthe maps containing the inputs
real_outputsthe maps containing the outputs