ZOO-Project
Functions
service_internal_r.h File Reference
#include <Rinternals.h>
#include <Rembedded.h>
#include "service_internal.h"
#include "response_print.h"
#include "cgic.h"

Go to the source code of this file.

Functions

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...
 
int zoo_r_support (maps **, map *, service *, maps **, maps **)
 Load a R script then run the function corresponding to the service by passing the conf, inputs and outputs parameters by reference. More...
 
SEXP RTranslate (SEXP)
 Use the ZOO-Services messages translation function from the R environment. More...
 
SEXP RUpdateStatus (SEXP, SEXP)
 Update the ongoing status of a running service from the R environment. More...
 

Function Documentation

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