Page
Library
Module
Module type
Parameter
Class
Class type
Source
Wcs_lib.Json
SourceJson utilities.
read_json_file reader fname
reads the file fname
using the reader reader
generated by atdgen.
The null
value of JSON.
set o x v
add (or replace) the a field x
of the object o
with value v
.
get o x
gets the value of the field x
of the object o
.
take o x
gets the value of the field x
of the object o
and remove the field from the object. The left part of the return value is the modified object and the right part is the value of the field.
"skip_user_input"
fieldset_skip_user_input ctx b
set the field "skip_user_input"
of the object ctx
with value b
.
take_skip_user_input ctx
take the field "skip_user_input"
of the object ctx
. If the field is the defined, it returns false
.
"actions"
fieldset_actions ctx l
set the field "actions"
of the object ctx
with the list of actions l
.
take_actions ctx
take the field "actions"
of the object ctx
.
push_action ctx act
add the action act
in the list of actions stored in the field "actions"
of ctx. It the field "actions"
doesn't exists, it creates it.
pop_action ctx
take an action act
in the list of actions stored in the field "actions"
of ctx.
"continuation"
fieldset_continuation ctx act
set the field "continuation"
of the object ctx
with the action act
.
get_continuation ctx
get the value of the field "continuation"
of the object ctx
.
take_continuation ctx
take the value of the field "continuation"
of the object ctx
.
"return"
fieldset_return ctx v
set the field "return"
of the object ctx
with the value v
.
get_return ctx
get the value of the field "return"
of the object ctx
.
set_bool o x b
sets the a field x
of the object o
with value b
.
get_bool o x
gets the value of the field x
of the object o
.
set_string o x x
sets the a field x
of the object o
with string s
.
get_string o x
gets the value of the field x
of the object o
.
take_string o x
takes the value of the field x
of the object o
.