#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.
map* mapFromRList |
( |
SEXP |
t | ) |
|
Convert a R List to a map.
- Parameters
-
t | the 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
-
t | the 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
-
- 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
-
- 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
-
str | the 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
-
confdict | the R arguments passed from the R environment |
status | the 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_conf | the conf maps containing the main.cfg settings |
request | the map containing the HTTP request |
s | the service structure |
real_inputs | the maps containing the inputs |
real_outputs | the maps containing the outputs |