5.2.8hdfql_cursor_use_default
Syntax
void hdfql_cursor_use_default(void)
Description
Set the HDFql default cursor as the one to be used for storing the results of operations.
Parameter(s)
None
Return
Nothing
Example(s)
// create a cursor named "my_cursor"
HDFQL_CURSOR my_cursor;
// initialize cursor "my_cursor"
hdfql_cursor_initialize(&my_cursor);
// use cursor "my_cursor"
hdfql_cursor_use(&my_cursor);
// display data type of cursor "my_cursor" (should be "Data type of cursor is -1")
printf("Data type of cursor is %d\n", hdfql_cursor_get_data_type(NULL));
// show (i.e. get) working directory currently in use
hdfql_execute("SHOW USE DIRECTORY");
// display (again) data type of cursor "my_cursor" (should be "Data type of cursor is 2097152")
printf("Data type of cursor is %d\n", hdfql_cursor_get_data_type(NULL));
// use HDFql default cursor
hdfql_cursor_use_default();
// display data type of HDFql default cursor (should be "Data type of cursor is -1")
printf("Data type of cursor is %d\n", hdfql_cursor_get_data_type(NULL));