![]() |
Accelerator Independent Data Access / PVAccess 2.0
AIDA-PVA is the latest version of the AIDA framework. Built on top of EPICS 7 it enables client applications to programmatically access and manage any device or database on the SLAC Network using simple channel names.
|
The Header File for the Native Channel Provider Server Helper functions. More...
#include "aida_pva.h"
Go to the source code of this file.
Functions | |
Argument | getArgument (Arguments arguments, char *name) |
Get a named argument. More... | |
json_value * | getJsonRoot (json_value *jsonValue) |
json_value * | getJsonValue (Value *value, char *passedInPath) |
Get the json value from the given value identified by the path. More... | |
Value | getNamedArrayValue (JNIEnv *env, Arguments arguments, char *name) |
Get array value from a named argument in the provided arguments structure. More... | |
Value | getNamedValue (JNIEnv *env, Arguments arguments, char *name) |
Get value from a named argument in the provided arguments structure. More... | |
The Header File for the Native Channel Provider Server Helper functions.
CMS=C_INC
Definition in file aida_pva_server_helper.h.
Get a named argument.
arguments | arguments |
name | name |
Definition at line 184 of file aida_pva_server_helper.c.
References Arguments::argumentCount, Arguments::arguments, Argument::name, and Argument::value.
json_value * getJsonRoot | ( | json_value * | jsonValue | ) |
Skip root element if it is _array otherwise return unchanged This is because our json parser can't process arrays at the top level and so we insert an object at the top level with an "_array" element if we find an array at the top level
jsonValue | the json value traverse |
Definition at line 404 of file aida_pva_server_helper.c.
Referenced by getJsonValue().
json_value * getJsonValue | ( | Value * | value, |
char * | passedInPath | ||
) |
Get the json value from the given value identified by the path.
value | the given value |
passedInPath | is an absolute reference to the element within the json of the given value. e.g. root.collection[0].name |
value | the given value |
passedInPath | is an absolute reference to the element within the json of the given value. e.g. root.collection.[0].name |
Definition at line 347 of file aida_pva_server_helper.c.
References AIDA_JSON_TYPE, getJsonRoot(), ValueContents::jsonValue, Value::type, and Value::value.
Get array value from a named argument in the provided arguments structure.
env | env |
arguments | provided arguments structure |
name | provided name |
Get array value from a named argument in the provided arguments structure.
env | the JNI environment. Used in all functions involving JNI |
arguments | provided arguments structure |
name | provided name |
Definition at line 335 of file aida_pva_server_helper.c.
Referenced by getArrayValue().
Get value from a named argument in the provided arguments structure.
env | env |
arguments | provided arguments structure |
name | provided name |
env | the JNI environment. Used in all functions involving JNI |
arguments | provided arguments structure |
name | provided name |
Definition at line 322 of file aida_pva_server_helper.c.
Referenced by getValue().