![]() |
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.
|
SLC Database Native Provider implementation. More...
Go to the source code of this file.
Functions | |
int | aidaRequestBoolean (JNIEnv *env, const char *uri, Arguments arguments) |
Get a boolean. More... | |
Array | aidaRequestBooleanArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a boolean array. More... | |
char | aidaRequestByte (JNIEnv *env, const char *uri, Arguments arguments) |
Get a byte. More... | |
Array | aidaRequestByteArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a byte array. More... | |
double | aidaRequestDouble (JNIEnv *env, const char *uri, Arguments arguments) |
Get a double. More... | |
Array | aidaRequestDoubleArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a double array. More... | |
float | aidaRequestFloat (JNIEnv *env, const char *uri, Arguments arguments) |
Get a float. More... | |
Array | aidaRequestFloatArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a float array. More... | |
int | aidaRequestInteger (JNIEnv *env, const char *uri, Arguments arguments) |
Get a integer. More... | |
Array | aidaRequestIntegerArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a integer array. More... | |
long | aidaRequestLong (JNIEnv *env, const char *uri, Arguments arguments) |
Get a long. More... | |
Array | aidaRequestLongArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a long array. More... | |
short | aidaRequestShort (JNIEnv *env, const char *uri, Arguments arguments) |
Get a short. More... | |
Array | aidaRequestShortArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a short array. More... | |
char * | aidaRequestString (JNIEnv *env, const char *uri, Arguments arguments) |
Get a string. More... | |
StringArray | aidaRequestStringArray (JNIEnv *env, const char *uri, Arguments arguments) |
Get a string array: More... | |
Table | aidaRequestTable (JNIEnv *env, const char *uri, Arguments arguments) |
Get a table of data. More... | |
SET_STUB_TABLE void | aidaServiceInit (JNIEnv *env) |
Initialise the service. More... | |
void | aidaSetValue (JNIEnv *env, const char *uri, Arguments arguments, Value value) |
Set a value. More... | |
SLC Database Native Provider implementation.
This source file implements the AIDA-PVA SLC Database Provider. SLC Database provides data from the database values in the SLC Control System. It also allows the setting of float scalar database values.
Acquires data for the named SLC device from the SLC database. Also allows setting of float scalar database values.
MEMBER=SLCLIBS:AIDA_PVALIB ATTRIBUTES=JNI,LIBR_NOGLOBAL
Definition in file AIDASLCDB_SERVER.c.
int aidaRequestBoolean | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a boolean.
In fact this is implemented by getting a short and returning true if it is 0 and false otherwise
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 43 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
Get a boolean array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 212 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
char aidaRequestByte | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a byte.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 65 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
Get a byte array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 243 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
double aidaRequestDouble | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a double.
In fact this is implemented by getting a float and converting the return to a double
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 170 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
Get a double array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 418 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
float aidaRequestFloat | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a float.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 149 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
Get a float array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 381 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
int aidaRequestInteger | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a integer.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 107 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
Get a integer array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 305 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
long aidaRequestLong | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a long.
In fact this is implemented by getting an integer and then converting the return value to a long
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 128 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
Get a long array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 342 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
short aidaRequestShort | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a short.
uri | the uri |
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
arguments | the arguments |
Definition at line 86 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
Get a short array.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 268 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestTable().
char * aidaRequestString | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a string.
Allocate memory for string and it will be freed for you by framework
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 191 of file AIDASLCDB_SERVER.c.
Referenced by aidaRequestStringArray(), and aidaRequestTable().
StringArray aidaRequestStringArray | ( | JNIEnv * | env, |
const char * | uri, | ||
Arguments | arguments | ||
) |
Get a string array:
Get a string array.
If the primary is ASTS and the pseudo-secondary is either CTRL, STAT, VSTA, parse the text, color, and flag fields from the string returned by aidaRequestString(). The text, color, and flag substrings are then returned in an array
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 465 of file AIDASLCDB_SERVER.c.
Get a table of data.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
Definition at line 522 of file AIDASLCDB_SERVER.c.
References AIDA_BOOLEAN_ARRAY_TYPE, AIDA_BYTE_ARRAY_TYPE, AIDA_DOUBLE_ARRAY_TYPE, AIDA_FLOAT_ARRAY_TYPE, AIDA_INTEGER_ARRAY_TYPE, AIDA_LONG_ARRAY_TYPE, AIDA_SHORT_ARRAY_TYPE, aidaRequestBoolean(), aidaRequestBooleanArray(), aidaRequestByte(), aidaRequestByteArray(), aidaRequestDouble(), aidaRequestDoubleArray(), aidaRequestFloat(), aidaRequestFloatArray(), aidaRequestInteger(), aidaRequestIntegerArray(), aidaRequestLong(), aidaRequestLongArray(), aidaRequestShort(), aidaRequestShortArray(), aidaRequestString(), ascanf(), Table::columnCount, Array::count, Array::items, ON_EXCEPTION_RETURN_, RETURN_NULL_TABLE, tableAddColumn(), tableAddSingleRowBooleanColumn(), tableAddSingleRowByteColumn(), tableAddSingleRowDoubleColumn(), tableAddSingleRowFloatColumn(), tableAddSingleRowIntegerColumn(), tableAddSingleRowLongColumn(), tableAddSingleRowShortColumn(), tableAddSingleRowStringColumn(), and tableCreate().
SET_STUB_TABLE void aidaServiceInit | ( | JNIEnv * | env | ) |
Initialise the service.
Initialise the aida service.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
ServerInitialisationException | if the service fails to initialise |
Definition at line 24 of file AIDASLCDB_SERVER.c.
References aidaThrow(), init(), and SERVER_INITIALISATION_EXCEPTION.
Set a value.
env | to be used to throw exceptions using aidaThrow() and aidaThrowNonOsException() |
uri | the uri |
arguments | the arguments |
value | to set |
Definition at line 656 of file AIDASLCDB_SERVER.c.