TUM-Logo

libRASCH

 

Home
 

General

About libRASCH/News
Design
Screen shots
Sample programs (with source code)
License
 

Download

libRASCH
Tools
 

Documentation

User
Developer
 

Resources

Mailing list
Supported Formats
Plugins
Status
Links
 
Contact
About this site
 
Last updated
Tue Mar 27 23:03:52 2007
libRASCH: ra.h File Reference

ra.h File Reference

Include dependency graph for ra.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

LIBRAAPI ra_handle ra_lib_init (void)
 init libRASCH
LIBRAAPI void ra_lib_close (ra_handle h)
 close libRASCH
LIBRAAPI long ra_lib_get_error (ra_handle h, char *text, int len)
 get last error
LIBRAAPI ra_handle ra_lib_handle_from_any_handle (meas_handle mh)
LIBRAAPI meas_handle ra_meas_handle_from_any_handle (any_handle rh)
 retrive measurement-handle from any handle
LIBRAAPI int ra_lib_use_plugin (ra_handle h, int plugin_index, int use_it)
 set using a plugin (or not)
LIBRAAPI plugin_handle ra_plugin_get_by_num (ra_handle h, int plugin_index, int search_all)
 get plugin-handle
LIBRAAPI plugin_handle ra_plugin_get_by_name (ra_handle h, const char *name, int search_all)
 get plugin-handle
LIBRAAPI ra_find_handle ra_meas_find_first (ra_handle h, const char *dir, struct ra_find_struct *rfs)
 find libRASCH-handled measurements (return first one)
LIBRAAPI int ra_meas_find_next (ra_find_handle h, struct ra_find_struct *mfs)
 find libRASCH-handled measurements (returns next)
LIBRAAPI void ra_meas_close_find (ra_find_handle h)
 close the search for libRASCH-handled measurements
LIBRAAPI meas_handle ra_meas_open (ra_handle h, const char *file, const char *eval_file, int fast)
 open a measurement
LIBRAAPI meas_handle ra_meas_new (ra_handle h, const char *dir, const char *name)
 creates a new measurement
LIBRAAPI int ra_meas_save (meas_handle mh)
 saves a measurement
LIBRAAPI void ra_meas_close (meas_handle mh)
 close a measurement
LIBRAAPI int ra_info_get (any_handle h, int id, value_handle vh)
 get infos
LIBRAAPI int ra_info_get_by_name (any_handle h, const char *name, value_handle vh)
 get infos
LIBRAAPI int ra_info_get_by_idx (any_handle h, int info_type, int idx, value_handle vh)
 get infos
LIBRAAPI int ra_info_set (any_handle h, value_handle vh)
 set info
LIBRAAPI rec_handle ra_rec_get_first (meas_handle mh, long session)
 get root-recording
LIBRAAPI rec_handle ra_rec_get_next (rec_handle rh)
 get next recording
LIBRAAPI rec_handle ra_rec_get_first_child (rec_handle rh)
 get first sub-recording
LIBRAAPI size_t ra_raw_get (rec_handle rh, unsigned int ch, size_t start, size_t num_data, DWORD *data, DWORD *data_high)
 get raw-signal data
LIBRAAPI size_t ra_raw_get_unit (rec_handle rh, unsigned int ch, size_t start, size_t num_data, double *data)
 get raw-signal data scaled to 'unit'-values
LIBRAAPI int ra_gui_call (any_handle h, plugin_handle pl)
 shows GUI-element of a plugin (if avail.)
LIBRAAPI proc_handle ra_proc_get (meas_handle mh, plugin_handle pl, void(*callback)(const char *, int))
 get a processing handle
LIBRAAPI void ra_proc_free (proc_handle proc)
 free a processing handle
LIBRAAPI int ra_proc_do (proc_handle proc)
 process the signal
LIBRAAPI int ra_proc_get_result (proc_handle proc, long res_num, long res_set, value_handle vh)
 get the processing results
LIBRAAPI int ra_view_get (view_handle vh)
 create/show view of view-plugin
LIBRAAPI value_handle ra_value_malloc ()
 allocate and initialize a value_handle
LIBRAAPI void ra_value_free (value_handle vh)
 free value-handle
LIBRAAPI void ra_value_reset (value_handle vh)
 reset value-handle
LIBRAAPI long ra_value_get_type (value_handle vh)
 return value-type
LIBRAAPI int ra_value_is_ok (value_handle vh)
 checks if value is valid
LIBRAAPI long ra_value_get_num_elem (value_handle vh)
 return number of elements of array values
LIBRAAPI long ra_value_get_info (value_handle vh)
 returns id of info
LIBRAAPI const char * ra_value_get_name (value_handle vh)
 returns name of info
LIBRAAPI const char * ra_value_get_desc (value_handle vh)
 returns description of info
LIBRAAPI int ra_value_set_number (value_handle vh, long number)
 set a number in a value-handle
LIBRAAPI long ra_value_get_number (value_handle vh)
 get a number set in a value-handle
LIBRAAPI void ra_value_set_short (value_handle vh, const short value)
 set short value in value-handle
LIBRAAPI void ra_value_set_long (value_handle vh, const long value)
 set long value in value-handle
LIBRAAPI void ra_value_set_double (value_handle vh, const double value)
 set double value in value-handle
LIBRAAPI void ra_value_set_string (value_handle vh, const char *value)
 set a string in value-handle
LIBRAAPI void ra_value_set_string_utf8 (value_handle vh, const char *value)
 set a UTF-8 encoded string in value-handle
LIBRAAPI void ra_value_set_voidp (value_handle vh, const void *value)
 set void-pointer value in value-handle
LIBRAAPI void ra_value_set_short_array (value_handle vh, const short *array, long num)
 set short-array values in value-handle
LIBRAAPI void ra_value_set_long_array (value_handle vh, const long *array, long num)
 set long-array values in value-handle
LIBRAAPI void ra_value_set_double_array (value_handle vh, const double *array, long num)
 set double-array values in value-handle
LIBRAAPI void ra_value_set_string_array (value_handle vh, const char **array, long num)
 set a string-array in value-handle
LIBRAAPI void ra_value_set_string_array_utf8 (value_handle vh, const char **array, long num)
 set a string-array (UTF-8 encoded) in value-handle
LIBRAAPI void ra_value_set_voidp_array (value_handle vh, const void **array, long num)
 set void-pointer-array values in value-handle
LIBRAAPI void ra_value_set_vh_array (value_handle vh, const value_handle *array, long num)
 set value-handle-array values in value-handle
LIBRAAPI short ra_value_get_short (value_handle vh)
 return short value from value-handle
LIBRAAPI long ra_value_get_long (value_handle vh)
 return long value from value-handle
LIBRAAPI double ra_value_get_double (value_handle vh)
 return double value from value-handle
LIBRAAPI const char * ra_value_get_string (value_handle vh)
 return character pointer from value-handle
LIBRAAPI const char * ra_value_get_string_utf8 (value_handle vh)
 return character pointer from value-handle (UTF-8 encoded)
LIBRAAPI const void * ra_value_get_voidp (value_handle vh)
 return void-pointer from value-handle
LIBRAAPI const short * ra_value_get_short_array (value_handle vh)
 return pointer to short array from value-handle
LIBRAAPI const long * ra_value_get_long_array (value_handle vh)
 return pointer to long array from value-handle
LIBRAAPI const double * ra_value_get_double_array (value_handle vh)
 return pointer to double array from value-handle
LIBRAAPI const char ** ra_value_get_string_array (value_handle vh)
 return pointer to character pointer array from value-handle
LIBRAAPI const char ** ra_value_get_string_array_utf8 (value_handle vh)
 return pointer to character pointer array from value-handle (UTF-8 encoded)
LIBRAAPI const void ** ra_value_get_voidp_array (value_handle vh)
 return pointer to void-pointer array from value-handle
LIBRAAPI const value_handlera_value_get_vh_array (value_handle vh)
 return pointer to long array from value-handle
LIBRAAPI int ra_value_copy (value_handle dest, value_handle src)
 copy one value_handle to another value_handle
LIBRAAPI int ra_value_get_single_elem (value_handle dest, value_handle src, long elem_num)
 copy one element from a value-handle in another value-handle
LIBRAAPI int ra_lib_get_option (any_handle h, const char *opt_name, value_handle vh)
 returns an option value
LIBRAAPI int ra_lib_set_option (any_handle h, const char *opt_name, value_handle vh)
 set an option
LIBRAAPI int ra_meas_copy (meas_handle mh, const char *dest_dir)
 copy measurement
LIBRAAPI meas_handle ra_meas_move (meas_handle mh, const char *dest_dir)
 move measurement
LIBRAAPI int ra_meas_delete (meas_handle mh)
 delete measurement
LIBRAAPI int ra_eval_edit_start (any_handle h)
LIBRAAPI int ra_eval_edit_complete (any_handle h)
LIBRAAPI int ra_eval_edit_cancel (any_handle h)
LIBRAAPI int ra_eval_attribute_list (any_handle h, value_handle vh)
LIBRAAPI int ra_eval_attribute_get (any_handle h, const char *name, value_handle vh)
 get from 'h' the value of the attribute 'name'
LIBRAAPI int ra_eval_attribute_set (any_handle h, const char *name, value_handle vh)
 set the value of the attribute 'name' in 'h'
LIBRAAPI int ra_eval_attribute_unset (any_handle h, const char *id)
 removes the attribute 'name' in 'h'
LIBRAAPI eval_handle ra_eval_add (meas_handle mh, const char *name, const char *desc, int original)
 adds an evaluation
LIBRAAPI int ra_eval_delete (eval_handle eh)
 delete evaluation
LIBRAAPI int ra_eval_get_all (meas_handle mh, value_handle vh)
 returns all evaluation-handles
LIBRAAPI eval_handle ra_eval_get_original (meas_handle mh)
 returns the original evaluation-handle
LIBRAAPI eval_handle ra_eval_get_default (meas_handle mh)
 returns the default evaluation-handle
LIBRAAPI int ra_eval_set_default (eval_handle eh)
 set an evaluation to the default one
LIBRAAPI eval_handle ra_eval_get_handle (class_handle clh)
 returns the evaluation handle an event-class belongs to
LIBRAAPI class_handle ra_class_add (eval_handle eh, const char *id, const char *name, const char *desc)
 adds an user-defined event-class to an evaluation
LIBRAAPI class_handle ra_class_add_predef (eval_handle eh, const char *id)
 adds an pre-defined event-class to an evaluation
LIBRAAPI int ra_class_delete (class_handle clh)
 deletes an event-class
LIBRAAPI int ra_class_get (eval_handle eh, const char *id, value_handle vh)
 return event-class
LIBRAAPI long ra_class_add_event (class_handle clh, long start, long end)
 add an event
LIBRAAPI int ra_class_del_event (class_handle clh, long event_id)
 delete an event
LIBRAAPI int ra_class_get_event_pos (class_handle clh, long event_id, long *start, long *end)
 get the start and end position of an event
LIBRAAPI int ra_class_set_event_pos (class_handle clh, long event_id, long start, long end)
 set the start and end position of an event
LIBRAAPI int ra_class_get_events (class_handle clh, long start, long end, int complete, int sort, value_handle vh)
 returns the events in a specific region
LIBRAAPI class_handle ra_class_get_handle (prop_handle ph)
 returns the event-class handle the event-property belongs to
LIBRAAPI prop_handle ra_prop_add (class_handle clh, const char *id, long value_type, long num_values, const char *name, const char *desc, const char *unit, int use_minmax, double min, double max)
LIBRAAPI prop_handle ra_prop_add_predef (class_handle clh, const char *id)
LIBRAAPI int ra_prop_delete (prop_handle ph)
LIBRAAPI prop_handle ra_prop_get (class_handle clh, const char *id)
LIBRAAPI int ra_prop_get_all (class_handle clh, value_handle vh)
LIBRAAPI int ra_prop_set_value (prop_handle ph, long event_id, long ch, value_handle vh)
LIBRAAPI int ra_prop_get_ch (prop_handle ph, long event_id, value_handle vh)
LIBRAAPI int ra_prop_get_value (prop_handle ph, long event_id, long ch, value_handle vh)
LIBRAAPI int ra_prop_get_events (prop_handle ph, value_handle min, value_handle max, long ch, value_handle vh)
LIBRAAPI sum_handle ra_sum_add (class_handle clh, const char *id, const char *name, const char *desc)
LIBRAAPI int ra_sum_add_ch (sum_handle sh, long ch, long fiducial_offset, long num_dim, const char **dim_unit, const char **dim_name)
LIBRAAPI int ra_sum_delete (sum_handle sh)
LIBRAAPI int ra_sum_get (class_handle clh, const char *id, value_handle vh)
LIBRAAPI long ra_sum_add_part (sum_handle sh, long num_events, const long *events_based_on)
LIBRAAPI int ra_sum_del_part (sum_handle sh, long part_id)
LIBRAAPI int ra_sum_get_part_all (sum_handle sh, value_handle vh)
LIBRAAPI int ra_sum_set_part_data (sum_handle sh, long part_id, long channel, long dim, value_handle vh)
LIBRAAPI int ra_sum_get_part_data (sum_handle sh, long part_id, long channel, long dim, value_handle vh)
LIBRAAPI int ra_sum_get_part_events (sum_handle sh, long part_id, value_handle vh)


Detailed Description

The header file contains the prototypes of most of the API functions.

Author:
Raphael Schneider (rasch@med1.med.tum.de)

Definition in file ra.h.


Function Documentation

LIBRAAPI class_handle ra_class_add eval_handle  eh,
const char *  id,
const char *  name,
const char *  desc
 

Parameters:
<eh> evaluation handle
<id> ASCII-id of the event-class
<name> a short name for the event-class
<desc> a short description of the event-class
The function adds an event-class to the evaluation 'eh'. The parameter 'id' is used to identifiy the event-class and must contain only ASCII characters. The parameters 'name' and 'desc' are used to describe the event-class. If you want to use a pre-defined event-class, use ra_class_add_predef().

Definition at line 676 of file eval.c.

References _ra_set_error, eval_class::ascii_id, eval::cl, eval_class::eval, get_class_id(), eval_class::handle_id, eval_class::id, MAX_ID_LEN, eval::meas, eval_class::meas, ra_class_delete(), RA_ERR_INFO_MISSING, RA_ERR_NONE, ra_eval_attribute_set(), RA_HANDLE_EVAL_CLASS, ra_list_add(), ra_value_free(), ra_value_malloc(), and ra_value_set_string().

Referenced by add_class_orig(), and ra_class_add_predef().

LIBRAAPI long ra_class_add_event class_handle  clh,
long  start,
long  end
 

Parameters:
<clh> event-class handle
<start> start position of the event in sample-units
<end> end position of the event in sample-units
The function adds an event to the event-class 'clh'. The start and end of the event are given by 'start' and 'end' respectively. If the event is a point in time, use for 'end' the same value as 'start'. A unique event-id is returned.

Definition at line 883 of file eval.c.

References _ra_set_error, add_prop_mem(), eval_event::end, eval_class::ev, eval_class::handle_id, eval_event::id, eval_class::last_id, eval_class::num_event, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_CLASS, and eval_event::start.

Referenced by add_events_orig(), create_auto_class(), and read_sets_xml().

LIBRAAPI class_handle ra_class_add_predef eval_handle  eh,
const char *  id
 

Parameters:
<eh> evaluation handle
<id> ASCII-id of the event-class
The function adds the event-class 'id' to the evaluation 'eh'. 'id' is one of the pre-defined event-classes in libRASCH. If you want to add not a pre-defined event-class, use ra_class_add().

Definition at line 739 of file eval.c.

References fill_predef_class_info_ascii(), ra_class_add(), ra_value_free(), ra_value_get_string(), and ra_value_malloc().

Referenced by create_auto_class().

LIBRAAPI int ra_class_del_event class_handle  clh,
long  event_id
 

Parameters:
<clh> event-class handle
<event_id> event-id of the event
The function deletes the event 'event_id' from the event-class 'clh'.

Definition at line 996 of file eval.c.

References _ra_set_error, del_prop_values(), eval_class::ev, get_event_idx(), eval_class::handle_id, eval_class::last_id, eval_class::num_event, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, RA_ERR_WRONG_HANDLE, RA_ERR_WRONG_INPUT, and RA_HANDLE_EVAL_CLASS.

LIBRAAPI int ra_class_delete class_handle  clh  ) 
 

Parameters:
<clh> event-class handle
The function deletes the event-class 'clh'.

Definition at line 767 of file eval.c.

References _ra_set_error, eval::cl, delete_attributes(), eval_class::ev, eval_class::handle_id, eval_class::prop, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_CLASS, ra_list_del(), ra_prop_delete(), ra_sum_delete(), and eval_class::summaries.

Referenced by ra_class_add(), and ra_eval_delete().

LIBRAAPI int ra_class_get eval_handle  eh,
const char *  id,
value_handle  vh
 

Parameters:
<eh> evaluation handle
<id> event-class ASCII-id
<vh> value handle
The function returns all event-classes with the id 'id'. If 'id' is NULL (or is an empty string), all event-classes in the evaluation 'eh' are given.

Definition at line 818 of file eval.c.

References _ra_set_error, eval_class::ascii_id, eval::cl, eval::handle_id, eval_class::next, RA_ERR_INFO_MISSING, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL, ra_value_reset(), and ra_value_set_voidp_array().

Referenced by do_post_processing(), and ra_eval_delete().

LIBRAAPI int ra_class_get_event_pos class_handle  clh,
long  event_id,
long *  start,
long *  end
 

Parameters:
<clh> event-class handle
<event_id> event-id of the event
<start> here the start position will be returned
<end> here the end position will be returned
The function returns in 'start' and 'end' the position of the evvent 'event_id' from the event-class 'clh'. The positions are in sample-units.

Definition at line 1162 of file eval.c.

References _ra_set_error, eval_event::end, eval_class::ev, get_event_idx(), eval_class::handle_id, eval_class::last_id, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, RA_ERR_WRONG_HANDLE, RA_ERR_WRONG_INPUT, RA_HANDLE_EVAL_CLASS, and eval_event::start.

LIBRAAPI int ra_class_get_events class_handle  clh,
long  start,
long  end,
int  complete,
int  sort,
value_handle  vh
 

Parameters:
<clh> event-class handle
<start> start of the region of interest
<end> end of the region of interest
<complete> flag if the events have to be complete in the region of interest
<sort> flag if the found events should be sorted according their start position
<vh> value handle receiving the event-id's asked for
The function returns in 'vh' the events which are inside a specific region. The region of interest (ROI)is given by 'start' and 'end'. If the 'complete' flag is set, the events have to be complete inside the ROI. If it is not set, all events are returned which starts or ends inside the ROI.

Definition at line 1269 of file eval.c.

References _ra_set_error, comp_pos(), eval_event::end, eval_class::ev, eval_class::handle_id, eval_event::id, sort_pos::id, eval_class::num_event, sort_pos::pos, RA_ERR_INFO_MISSING, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_CLASS, ra_value_reset(), ra_value_set_long_array(), and eval_event::start.

LIBRAAPI class_handle ra_class_get_handle prop_handle  ph  ) 
 

Parameters:
<ph> event-property handle
The function returns the event-class handle the event-property 'ph' belongs to.

Definition at line 1348 of file eval.c.

References _ra_set_error, eval_property::evclass, eval_property::handle_id, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, and RA_HANDLE_EVAL_PROP.

LIBRAAPI int ra_class_set_event_pos class_handle  clh,
long  event_id,
long  start,
long  end
 

Parameters:
<clh> event-class handle
<event_id> event-id of the event
<start> the start position of the event
<end> the end position of the event
The function sets the start and end position of the event 'event_id' in the event-class 'clh' to the values 'start' and 'end'.

Definition at line 1209 of file eval.c.

References _ra_set_error, eval_event::end, eval_class::ev, get_event_idx(), eval_class::handle_id, eval_class::last_id, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, RA_ERR_WRONG_HANDLE, RA_ERR_WRONG_INPUT, RA_HANDLE_EVAL_CLASS, and eval_event::start.

LIBRAAPI eval_handle ra_eval_add meas_handle  mh,
const char *  name,
const char *  desc,
int  original
 

Parameters:
<mh> measurement-handle
<name> a short name of the evaluation
<desc> a short description of the evaluation
<original> flag if evaluation is the original evaluation
This function adds an evaluation to a measurement.

Definition at line 246 of file eval.c.

References _ra_set_error, ra_meas::eval, EVAL_MAX_DESC, eval_info::evaluations, eval::handle_id, ra_meas::handle_id, eval::meas, eval::original, RA_ERR_EVAL_WRONG_TYPE, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, ra_eval_attribute_set(), ra_eval_get_original(), ra_eval_set_default(), RA_HANDLE_EVAL, RA_HANDLE_MEAS, ra_list_add(), ra_list_del(), ra_value_free(), ra_value_malloc(), ra_value_set_string(), and set_env().

Referenced by add_eval_orig(), and ra_eval_save_result().

LIBRAAPI int ra_eval_attribute_get any_handle  h,
const char *  id,
value_handle  vh
 

Parameters:
<h> an eval-/event-class-/event-prop-handle
<id> ASCII-id of the attribute
<vh> value-handle receiving the value
This function returns the value stored in the attribute 'name'.

Definition at line 109 of file eval.c.

References _ra_set_error, find_attribute(), RA_ERR_NONE, RA_ERR_UNKNOWN, ra_value_copy(), ra_value_reset(), and eval_attribute::value.

Referenced by eval_get_info().

LIBRAAPI int ra_eval_attribute_list any_handle  h,
value_handle  vh
 

Definition at line 61 of file eval.c.

References _ra_set_error, eval_info::attribute, ra_meas::eval, MAX_ATTRIB_LEN, eval_head::meas, eval_attribute::name, eval_attribute::next, RA_ERR_NONE, ra_value_reset(), ra_value_set_string_array(), and eval_attribute::src_handle.

LIBRAAPI int ra_eval_attribute_set any_handle  h,
const char *  id,
value_handle  vh
 

Parameters:
<h> an eval-/event-class-/event-prop-handle
<id> ASCII-id of the attribute
<vh> value-handle with the value
This function sets the value of the attribute 'name'.

Definition at line 139 of file eval.c.

References _ra_set_error, eval_info::attribute, ra_meas::eval, find_attribute(), MAX_ATTRIB_LEN, eval_head::meas, eval_attribute::name, RA_ERR_NONE, ra_list_add(), ra_value_copy(), ra_value_malloc(), eval_attribute::src_handle, and eval_attribute::value.

Referenced by create_auto_class(), ra_class_add(), ra_eval_add(), ra_prop_add(), ra_sum_add(), and read_sets_xml().

LIBRAAPI int ra_eval_attribute_unset any_handle  h,
const char *  id
 

Parameters:
<h> an eval-/event-class-/event-prop-handle
<id> ASCII-id of the attribute
This function removes the attribute 'name'.

Definition at line 171 of file eval.c.

References _ra_set_error, eval_info::attribute, ra_meas::eval, find_attribute(), eval_head::meas, RA_ERR_NONE, RA_ERR_UNKNOWN, ra_list_del(), ra_value_free(), and eval_attribute::value.

LIBRAAPI int ra_eval_delete eval_handle  eh  ) 
 

Parameters:
<eh> evaluation handle
The function deletes the evaluation given by 'eh'.

Definition at line 451 of file eval.c.

References _ra_set_error, delete_attributes(), ra_meas::eval, eval_info::evaluations, eval::handle_id, eval_head::meas, ra_class_delete(), ra_class_get(), RA_ERR_NONE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL, ra_list_del(), ra_value_free(), ra_value_get_num_elem(), ra_value_get_voidp_array(), and ra_value_malloc().

Referenced by free_eval_infos().

LIBRAAPI int ra_eval_edit_cancel any_handle  h  ) 
 

Definition at line 52 of file eval.c.

Referenced by create_auto_class(), and read_evaluation().

LIBRAAPI int ra_eval_edit_complete any_handle  h  ) 
 

Definition at line 45 of file eval.c.

Referenced by create_auto_class(), and read_evaluation().

LIBRAAPI int ra_eval_edit_start any_handle  h  ) 
 

Definition at line 38 of file eval.c.

Referenced by create_auto_class(), and read_evaluation().

LIBRAAPI int ra_eval_get_all meas_handle  mh,
value_handle  vh
 

Parameters:
<mh> measurement-handle
<vh> value-handle receiving the evaluation-handles
This function returns all evaluation-handles in the evaluation file associated with mh.

Definition at line 507 of file eval.c.

References _ra_set_error, ra_meas::eval, eval_info::evaluations, eval::next, RA_ERR_INFO_MISSING, RA_ERR_NONE, ra_list_len(), ra_value_reset(), and ra_value_set_voidp_array().

LIBRAAPI eval_handle ra_eval_get_default meas_handle  mh  ) 
 

Parameters:
<mh> measurement-handle
This function returns the default evaluation-handle.

Definition at line 582 of file eval.c.

References _ra_set_error, ra_meas::eval, eval_info::evaluations, and RA_ERR_NONE.

Referenced by ra_eval_set_default().

LIBRAAPI eval_handle ra_eval_get_handle class_handle  clh  ) 
 

Parameters:
<clh> event-class handle
The function returns the evaluation handle which the evant-class given by 'clh' belongs to.

Definition at line 638 of file eval.c.

References _ra_set_error, eval_class::eval, eval_class::handle_id, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, and RA_HANDLE_EVAL_CLASS.

LIBRAAPI eval_handle ra_eval_get_original meas_handle  mh  ) 
 

Parameters:
<mh> measurement-handle
This function returns the original evaluation-handle.

Definition at line 554 of file eval.c.

References _ra_set_error, ra_meas::eval, eval_info::evaluations, eval::next, eval::original, and RA_ERR_NONE.

Referenced by ra_eval_add(), and read_evaluation().

LIBRAAPI int ra_eval_set_default eval_handle  eh  ) 
 

Parameters:
<eh> evaluation handle
The function sets the evaluation given by 'eh' to the default one.

Definition at line 610 of file eval.c.

References _ra_set_error, eval::def, RA_ERR_NONE, ra_eval_get_default(), and ra_meas_handle_from_any_handle().

Referenced by ra_eval_add().

LIBRAAPI int ra_gui_call any_handle  h,
plugin_handle  pl
 

Parameters:
<h> processing-handle or view-handle
<pl> plugin-handle
If the plugin pl provides a GUI-element, this function shows this GUI-element and transfer control to it. The h variable contains some information, needed by the plugin. For more information if a plugin provides a GUI-element and what type/information is needed, please see the plugin specific documentation.

Definition at line 2126 of file ra.c.

References _ra_set_error, plugin_struct::call_gui, RA_ERR_ERROR, and RA_ERR_PL_API_NOT_AVAIL.

LIBRAAPI int ra_info_get any_handle  h,
int  id,
value_handle  vh
 

Parameters:
<h> handle
<id> id of information wanted
<vh> value_handle receiving the info
Returns 0 if the wanted information was found and != 0 if not. The information will be in vh. For usage of the function please see user-manual.

Definition at line 1244 of file ra.c.

References _ra_set_error, plugin_struct::access, check_handle_type(), eval_get_info(), plugin_access_func::get_info_id, get_lib_info(), get_meas_general_info(), get_plugin_from_handle(), get_plugin_info(), get_proc_info(), get_session_info(), RA_ERR_PL_API_NOT_AVAIL, RA_HANDLE_LIB, RA_HANDLE_MEAS, RA_HANDLE_PLUGIN, RA_INFO_EVALUATION, RA_INFO_EVALUATION_END, RA_INFO_MEASUREMENT_END, RA_INFO_MEASUREMENT_START, RA_INFO_PROCESSING_END, RA_INFO_PROCESSING_START, RA_INFO_SESSION_END, RA_INFO_SESSION_START, and ra_value_reset().

Referenced by calc_x_scales(), copy_move_meas(), get_eval_file(), get_eval_file_xml(), ra_info_get_by_name(), ra_meas_delete(), ra_meas_move(), and write_evals_xml().

LIBRAAPI int ra_info_get_by_idx any_handle  h,
int  info_type,
int  idx,
value_handle  vh
 

Parameters:
<h> measurement-handle
<info_type> type of information wanted
<idx> index of information wanted
<vh> value_handle receiving the info
Returns 0 if the wanted information was found and != 0 if not. The information will be in vh. For usage of the function please see user-manual.

Definition at line 1749 of file ra.c.

References _ra_set_error, plugin_struct::access, plugin_access_func::get_info_idx, get_plugin_from_handle(), RA_ERR_PL_API_NOT_AVAIL, RA_ERR_UNKNOWN_INFO, and ra_value_reset().

LIBRAAPI int ra_info_get_by_name any_handle  h,
const char *  name,
value_handle  vh
 

Parameters:
<h> handle
<name> name (text string) of information wanted
<vh> value_handle receiving the info
Returns 0 if the wanted information was found and != 0 if not. The information will be in vh. For usage of the function please see user-manual.

Definition at line 1724 of file ra.c.

References find_ra_info_by_name(), local_to_utf8(), ra_info_get(), and ra_value_get_info().

LIBRAAPI int ra_info_set any_handle  h,
value_handle  vh
 

Parameters:
<h> handle
<vh> value_handle with the info
Not implemented !!!

Definition at line 1783 of file ra.c.

References _ra_set_error, plugin_struct::access, meta_info::desc, get_meta_info(), get_plugin_from_handle(), meta_info::id, ra_value::id, meta_info::name, RA_ERR_PL_API_NOT_AVAIL, RA_ERR_UNKNOWN_INFO, plugin_access_func::set_info, and set_meta_info().

LIBRAAPI void ra_lib_close ra_handle  h  ) 
 

Parameters:
<h> handle to ra instance
Close libRASCH, close plugins and frees all allocated memory.

Definition at line 394 of file ra.c.

References close_plugins(), librasch::error_from, and librasch::pl_head.

LIBRAAPI long ra_lib_get_error ra_handle  h,
char *  text,
int  len
 

Parameters:
<h> handle to ra instance
<text> character buffer which receives error text
<len> size of character buffer text
This function returns the last error occured in libRASCH (or in one of the plugins). See 'ra_error.h' for meaning of returned number. If the number is negative, the last error was an OS specific error and the error number comes from the OS (just remove the minus sign). If text is not NULL, a short error description will be returned in text.

Definition at line 423 of file ra.c.

References librasch::error_from, librasch::error_number, get_error_text(), and utf8_to_local_inplace().

Referenced by _ra_set_error_int().

LIBRAAPI int ra_lib_get_option any_handle  h,
const char *  opt_name,
value_handle  vh
 

Parameters:
<h> return option from this object
<opt_name> name of the option
<vh> after function-call, contains option value
The function tries to return the option opt_name from the object h. At the moment only options for process-plugins (h needs to be a process-handle) are supported.

Definition at line 2327 of file ra.c.

References _ra_set_error, find_option(), get_option(), plugin_struct::info, local_to_utf8(), ra_option_infos::num_offset, plugin_infos::num_options, ra_option_infos::offset, plugin_infos::opt, proc_info::options, proc_info::plugin, RA_ERR_ERROR, RA_ERR_OPTION_NO_OFFSET, RA_ERR_OPTION_UNKNOWN, RA_ERR_UNSUPPORTED, RA_HANDLE_PROC, and ra_value_reset().

LIBRAAPI ra_handle ra_lib_handle_from_any_handle meas_handle  mh  ) 
 

LIBRAAPI ra_handle ra_lib_init void   ) 
 

Init libRASCH, read config-file and init plugins; returns ra_handle.

Definition at line 71 of file ra.c.

References _ra_set_error, close_plugins(), get_plugin_by_name(), init_i18n(), RA_ERR_LOAD_PLUGINS, RA_ERR_NONE, RA_ERR_READ_CONFIG, RA_HANDLE_LIB, ra_in_error, ra_print_debug_infos, RA_WARN_NO_CONFIG_FILE, read_config(), read_plugins(), and set_endian_type().

LIBRAAPI int ra_lib_set_option any_handle  h,
const char *  opt_name,
value_handle  vh
 

Parameters:
<h> option will be set in this object
<opt_name> name of the option
<vh> option value
The function set the option opt_name in object h. At the moment only options for process-plugins (h needs to be a process-handle) are supported.

Definition at line 2478 of file ra.c.

References _ra_set_error, find_option(), plugin_struct::info, local_to_utf8(), ra_option_infos::num_offset, plugin_infos::num_options, ra_option_infos::offset, plugin_infos::opt, proc_info::options, proc_info::plugin, RA_ERR_ERROR, RA_ERR_OPTION_NO_OFFSET, RA_ERR_OPTION_UNKNOWN, RA_ERR_UNSUPPORTED, RA_HANDLE_PROC, and set_option().

Referenced by post_process_ecg().

LIBRAAPI int ra_lib_use_plugin ra_handle  h,
int  plugin_index,
int  use_it
 

Parameters:
<h> handle to libRASCH
<plugin_index> index of plugin to change
<use_it> flag using plugin (1: use plugin, !1: do not use plugin)
Use or do not use plugin.

Definition at line 741 of file ra.c.

References _ra_set_error, get_plugin(), plugin_struct::info, RA_ERR_UNKNOWN_PLUGIN, and plugin_infos::use_plugin.

LIBRAAPI void ra_meas_close meas_handle  mh  ) 
 

Parameters:
<mh> handle to measurement
Close a measurement.

Definition at line 1203 of file ra.c.

References plugin_struct::access, plugin_access_func::close_meas, ra_meas::eval, free_eval_infos(), free_session_rec(), ra_meas::num_sessions, ra_meas::p, ra_free_mem, ra_session::root_rec, ra_meas::sessions, and ra_meas::x_scale.

Referenced by ra_meas_delete(), and ra_meas_move().

LIBRAAPI void ra_meas_close_find ra_find_handle  h  ) 
 

Parameters:
<h> find-handle
End a search for libRASCH-handled measurements (frees some memory). Must be called if the ra_find_handle h returned from ra_meas_find_first() will no be longer used.

Definition at line 942 of file ra.c.

References find_meas::names, find_meas::num, and ra_free_mem.

LIBRAAPI int ra_meas_copy meas_handle  mh,
const char *  dest_dir
 

Parameters:
<mh> handle of measurement which should be copied
<dest_dir> destination directory
The function copy the files of measurement mh to directory dest_dir.

IMPORTANT!!! Function _not_ completely tested. Use at your own risk.

Definition at line 2642 of file ra.c.

References copy_move_meas(), local_to_utf8(), and MAX_PATH_RA.

LIBRAAPI int ra_meas_delete meas_handle  mh  ) 
 

Parameters:
<mh> handle of measurement which should be deleted
The function deletes the files of measurement mh. The measurement mh will be closed after the deletion. Therefore mh is no longer a valid measurement-handle.

IMPORTANT!!! Function _not_ completely tested. Use at your own risk.

Definition at line 2818 of file ra.c.

References delete_file(), MAX_PATH_RA, RA_INFO_DIR_L, RA_INFO_FILES_CA, ra_info_get(), RA_INFO_PATH_C, ra_meas_close(), ra_value_free(), ra_value_get_long(), ra_value_get_num_elem(), ra_value_get_string(), ra_value_get_string_array(), and ra_value_malloc().

LIBRAAPI ra_find_handle ra_meas_find_first ra_handle  h,
const char *  dir,
struct ra_find_struct rfs
 

Parameters:
<h> handle to libRASCH
<dir> directory which should be scanned for measurements
<rfs> pointer to ra_find_struct which will held the infos for the found measurement.
Search for libRASCH-handled measurements in dir. If at least on measurement was found a valid (!NULL) ra_find_handle will be returned and the infos about the measurement is in mfs.

Definition at line 865 of file ra.c.

References plugin_struct::access, find_meas::curr, plugin_access_func::find_meas, find_meas::handle_id, plugin_struct::info, local_to_utf8(), MAX_PATH_RA, ra_find_struct::name, find_meas::names, plugin_struct::next, find_meas::num, RA_HANDLE_FIND, plugin_infos::use_plugin, and utf8_to_local_inplace().

LIBRAAPI int ra_meas_find_next ra_find_handle  h,
struct ra_find_struct rfs
 

Parameters:
<h> find-handle
<rfs> pointer to ra_find_struct which will held the infos for the found measurement.
Returns 1 if another measurement was found (the information will be in mfs) or 0 if there are no more measurements searched with ra_meas_find_first().

Definition at line 918 of file ra.c.

References find_meas::curr, find_meas::handle_id, MAX_PATH_RA, ra_find_struct::name, find_meas::names, find_meas::num, RA_HANDLE_FIND, and utf8_to_local_inplace().

LIBRAAPI meas_handle ra_meas_handle_from_any_handle any_handle  h  ) 
 

Parameters:
<h> handle
Returns measurement-handle.

Definition at line 685 of file ra.c.

References _ra_set_error, eval_summary::meas, eval_property::meas, eval_class::meas, eval::meas, ra_rec::meas, RA_ERR_UNKNOWN_HANDLE, RA_HANDLE_EVAL, RA_HANDLE_EVAL_CLASS, RA_HANDLE_EVAL_PROP, RA_HANDLE_EVAL_SUMMARY, RA_HANDLE_MEAS, RA_HANDLE_REC, and eval_summary::sum.

Referenced by get_session_info(), ra_ch_add(), ra_dev_add(), ra_eval_set_default(), ra_lib_handle_from_any_handle(), ra_raw_get(), and ra_raw_get_unit().

LIBRAAPI meas_handle ra_meas_move meas_handle  mh,
const char *  dest_dir
 

Parameters:
<mh> handle of measurement which should be moved
<dest_dir> destination directory
The function move the files of measurement mh to directory dest_dir. After the move the measurement will be reopend (to be able to handle the new positions of the files) and the functions returns the new measurement-handle.

IMPORTANT!!! Function _not_ completely tested. Use at your own risk.

Definition at line 2664 of file ra.c.

References copy_move_meas(), ra_meas::eval, eval_info::filename, local_to_utf8(), MAX_PATH_RA, ra_info_get(), RA_INFO_PATH_C, ra_lib_handle_from_any_handle(), ra_meas_close(), ra_meas_open(), ra_value_free(), ra_value_get_string(), and ra_value_malloc().

LIBRAAPI meas_handle ra_meas_new ra_handle  h,
const char *  dir,
const char *  name
 

Parameters:
<h> handle to libRASCH
<dir> directory where the measurement-files should be stored
<name> name of the measurement
Creates a new measurement with the name name in the directory dir. The function returns the handle to the measurement. The measurement will be stored using the libRASCH file-format.

Not full implemented. !!!

Definition at line 1114 of file ra.c.

References _ra_set_error, plugin_struct::access, calc_x_scales(), ra_meas::handle_id, local_to_utf8(), plugin_access_func::new_meas, ra_meas::p, ra_meas::ra, RA_ERR_PL_API_NOT_AVAIL, RA_HANDLE_MEAS, and ra_plugin_get_by_name().

LIBRAAPI meas_handle ra_meas_open ra_handle  h,
const char *  file,
const char *  eval_file,
int  fast
 

Parameters:
<h> handle to libRASCH
<file> file-name of the measurement
<eval_file> file-name of the evaluation
<fast> flag if some init-code should be done (=0) or not (=1)
Opens the measurement file and returns a handle to the measurement. If the fast-flag is set, some initialisation-code (e.g. reading evaluation infos from the files) will not be done. This can be useful if only information about the measurment-object is needed but not about the evaluation. Getting the evaluation infos can be "very" time consuming.

Definition at line 976 of file ra.c.

References _ra_set_error, plugin_struct::access, calc_x_scales(), plugin_access_func::check_meas, ra_meas::handle_id, plugin_struct::info, load_eval(), local_to_utf8(), MAX_PATH_RA, plugin_struct::next, plugin_access_func::open_meas, ra_meas::p, librasch::pl_head, ra_meas::ra, RA_ERR_UNSUP_FORMAT, RA_HANDLE_MEAS, read_evaluation(), and plugin_infos::use_plugin.

Referenced by ra_meas_move().

LIBRAAPI int ra_meas_save meas_handle  mh  ) 
 

Parameters:
<mh> handle to measurement
Saves the changes to a measurement (NOT to the evaluation). Plugin must support this.

Not full implemented. !!!

Definition at line 1174 of file ra.c.

References _ra_set_error, plugin_struct::access, RA_ERR_PL_API_NOT_AVAIL, RA_ERR_WRONG_HANDLE, RA_HANDLE_MEAS, and plugin_access_func::save_meas.

LIBRAAPI plugin_handle ra_plugin_get_by_name ra_handle  h,
const char *  name,
int  search_all
 

Parameters:
<h> handle to libRASCH
<name> name of plugin
<search_all> flag if all plugins should be searched (or only those with the use-it-flag enabled)
Returns the plugin-handle for plugin with name name.

Definition at line 828 of file ra.c.

References _ra_set_error, get_plugin_by_name(), plugin_struct::info, local_to_utf8(), RA_ERR_ERROR_INTERNAL, RA_ERR_UNKNOWN_PLUGIN, and plugin_infos::use_plugin.

Referenced by post_process_ecg(), and ra_meas_new().

LIBRAAPI plugin_handle ra_plugin_get_by_num ra_handle  h,
int  plugin_num,
int  search_all
 

Parameters:
<h> handle to libRASCH
<plugin_num> number of plugin
<search_all> flag if all plugins should be searched (or only those with the use-it-flag enabled)
Returns the plugin-handle for plugin #plugin_num.

Definition at line 804 of file ra.c.

References _ra_set_error, get_plugin(), plugin_struct::info, RA_ERR_UNKNOWN_PLUGIN, and plugin_infos::use_plugin.

LIBRAAPI int ra_proc_do proc_handle  proc  ) 
 

Parameters:
<proc> processing-handle
This function calls the "processing" function of a process-plugin. For more information what information in proc is needed, please see the plugin specific documentation.

Definition at line 2215 of file ra.c.

References _ra_set_error, plugin_process_func::do_processing, proc_info::mh, proc_info::plugin, plugin_struct::proc, RA_ERR_ERROR, and RA_ERR_PL_API_NOT_AVAIL.

Referenced by post_process_ecg().

LIBRAAPI void ra_proc_free proc_handle  proc  ) 
 

Parameters:
<proc> processing-handle
This function frees a processing-handle and all associated memory.

Definition at line 2185 of file ra.c.

References _ra_set_error, plugin_process_func::free_proc_handle, proc_info::plugin, plugin_struct::proc, RA_ERR_ERROR, and RA_ERR_PL_API_NOT_AVAIL.

Referenced by post_process_ecg().

LIBRAAPI proc_handle ra_proc_get meas_handle  mh,
plugin_handle  pl,
void(*)(const char *, int)  callback
 

Parameters:
<pl> plugin-handle
This function returns a proc_handle for the plugin pl. The proc_handle will be returned initialized.

Definition at line 2153 of file ra.c.

References _ra_set_error, plugin_process_func::get_proc_handle, plugin_struct::proc, plugin_struct::ra, and RA_ERR_PL_API_NOT_AVAIL.

Referenced by post_process_ecg().

LIBRAAPI int ra_proc_get_result proc_handle  proc,
long  res_num,
long  res_set,
value_handle  vh
 

Parameters:
<proc> processing-handle
<res_num> number (zero-based index) of the wanted result
<res_set> number (zero-based index) of the wanted result-set
<vh> value-handle
This function returns in vh one result from a processing perfomed with ra_proc_do.

Definition at line 2247 of file ra.c.

References _ra_set_error, plugin_struct::info, plugin_infos::name, proc_info::num_result_sets, proc_info::num_results, proc_info::plugin, RA_ERR_ERROR, RA_ERR_OUT_OF_RANGE, ra_value_copy(), RA_VALUE_NAME_MAX, ra_value_reset(), and proc_info::results.

LIBRAAPI prop_handle ra_prop_add class_handle  clh,
const char *  id,
long  value_type,
long  num_values,
const char *  name,
const char *  desc,
const char *  unit,
int  use_minmax,
double  min,
double  max
 

Definition at line 1371 of file eval.c.

References _ra_set_error, alloc_prop_mem(), eval_property::ascii_id, eval_property::evclass, get_prop_id(), eval_property::handle_id, eval_class::handle_id, eval_property::id, MAX_ID_LEN, eval_class::meas, eval_property::meas, eval_class::prop, RA_ERR_INFO_MISSING, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, ra_eval_attribute_set(), RA_HANDLE_EVAL_CLASS, RA_HANDLE_EVAL_PROP, ra_list_add(), ra_prop_delete(), ra_value_free(), ra_value_malloc(), ra_value_set_double(), ra_value_set_long(), ra_value_set_string(), and eval_property::value_type.

Referenced by add_prop_orig(), and ra_prop_add_predef().

LIBRAAPI prop_handle ra_prop_add_predef class_handle  clh,
const char *  id
 

Definition at line 1497 of file eval.c.

References fill_predef_prop_info_ascii(), ra_prop_add(), ra_value_free(), ra_value_get_double(), ra_value_get_long(), ra_value_get_string(), and ra_value_malloc().

Referenced by create_auto_prop().

LIBRAAPI int ra_prop_delete prop_handle  ph  ) 
 

Definition at line 1538 of file eval.c.

References _ra_set_error, eval_property::ch_map, delete_attributes(), eval_property::evclass, eval_property::handle_id, eval_property::l, eval_property::num_elements, eval_property::num_entries, eval_class::prop, RA_ERR_ERROR, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_PROP, ra_list_del(), RA_VALUE_TYPE_CHAR, RA_VALUE_TYPE_CHAR_ARRAY, RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_DOUBLE_ARRAY, RA_VALUE_TYPE_LONG, RA_VALUE_TYPE_LONG_ARRAY, RA_VALUE_TYPE_SHORT, RA_VALUE_TYPE_SHORT_ARRAY, eval_property::value, and eval_property::value_type.

Referenced by ra_class_delete(), and ra_prop_add().

LIBRAAPI prop_handle ra_prop_get class_handle  clh,
const char *  id
 

Definition at line 1727 of file eval.c.

References _ra_set_error, eval_property::ascii_id, eval_class::handle_id, eval_property::next, eval_class::prop, RA_ERR_INFO_MISSING, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, and RA_HANDLE_EVAL_CLASS.

Referenced by create_auto_prop(), and do_post_processing().

LIBRAAPI int ra_prop_get_all class_handle  clh,
value_handle  vh
 

Definition at line 1700 of file eval.c.

References _ra_set_error, eval_class::handle_id, eval_class::prop, RA_ERR_INFO_MISSING, RA_ERR_NONE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_CLASS, ra_list_len(), ra_value_reset(), and ra_value_set_voidp_array().

LIBRAAPI int ra_prop_get_ch prop_handle  ph,
long  event_id,
value_handle  vh
 

Definition at line 1887 of file eval.c.

References _ra_set_error, eval_property::ch_map, eval_property::evclass, get_event_idx(), eval_property::handle_id, eval_property::num_entries, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_PROP, and ra_value_set_short_array().

LIBRAAPI int ra_prop_get_events prop_handle  ph,
value_handle  min,
value_handle  max,
long  ch,
value_handle  vh
 

Definition at line 1983 of file eval.c.

References _ra_set_error, eval_property::ch_map, eval_class::ev, eval_property::evclass, eval_property::handle_id, eval_event::id, eval_property::l, eval_class::num_event, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, RA_ERR_UNSUPPORTED, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_PROP, ra_value_get_double(), ra_value_get_long(), ra_value_is_ok(), ra_value_reset(), ra_value_set_long_array(), RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_LONG, eval_property::value, and eval_property::value_type.

LIBRAAPI int ra_prop_get_value prop_handle  ph,
long  event_id,
long  ch,
value_handle  vh
 

Definition at line 1913 of file eval.c.

References _ra_set_error, eval_property::ch_map, eval_property::evclass, get_event_idx(), eval_property::handle_id, eval_property::l, eval_property::num_elements, eval_property::num_entries, RA_ERR_ERROR, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_PROP, ra_value_set_double(), ra_value_set_double_array(), ra_value_set_long(), ra_value_set_long_array(), ra_value_set_short(), ra_value_set_short_array(), ra_value_set_string(), ra_value_set_string_array(), RA_VALUE_TYPE_CHAR, RA_VALUE_TYPE_CHAR_ARRAY, RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_DOUBLE_ARRAY, RA_VALUE_TYPE_LONG, RA_VALUE_TYPE_LONG_ARRAY, RA_VALUE_TYPE_SHORT, RA_VALUE_TYPE_SHORT_ARRAY, eval_property::value, and eval_property::value_type.

LIBRAAPI int ra_prop_set_value prop_handle  ph,
long  event_id,
long  ch,
value_handle  vh
 

Definition at line 1760 of file eval.c.

References _ra_set_error, eval_property::ca, eval_property::ch_map, eval_property::evclass, get_event_idx(), eval_property::handle_id, eval_property::l, eval_property::num_elements, eval_property::num_entries, RA_ERR_ERROR, RA_ERR_EVAL_WRONG_TYPE, RA_ERR_INFO_MISSING, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, RA_ERR_WRONG_HANDLE, RA_HANDLE_EVAL_PROP, ra_value_get_double(), ra_value_get_double_array(), ra_value_get_long(), ra_value_get_long_array(), ra_value_get_num_elem(), ra_value_get_short(), ra_value_get_short_array(), ra_value_get_string(), ra_value_get_string_array(), ra_value_get_type(), ra_value_is_ok(), RA_VALUE_TYPE_CHAR, RA_VALUE_TYPE_CHAR_ARRAY, RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_DOUBLE_ARRAY, RA_VALUE_TYPE_LONG, RA_VALUE_TYPE_LONG_ARRAY, RA_VALUE_TYPE_SHORT, RA_VALUE_TYPE_SHORT_ARRAY, eval_property::value, and eval_property::value_type.

Referenced by add_values_orig(), and create_auto_prop().

LIBRAAPI size_t ra_raw_get rec_handle  rh,
unsigned int  ch,
size_t  start,
size_t  num_data,
DWORD data,
DWORD data_high
 

Parameters:
<rh> recording-handle
<ch> channel
<start> first sample
<num_data> number of samples
<data> buffer for samples
<data_high> buffer for higher 4 bytes of samples (if size of one sample > 4 bytes)
This function returns the sample's (raw-signal data) from the measurement mh and the recording rh. The first sample in data will be the sample number start (in sampleunits) and max. num_data are in data. The memory for buffer data must be allocated in calling function. The samples returned in this function are the samples as stored in the file. If the size of one sample is greater than 4 bytes, the upper part of the samples are stored in the data_high buffer. If the size is not greater than 4 bytes, the buffer is not needed.

Definition at line 2051 of file ra.c.

References _ra_set_error, plugin_struct::access, plugin_access_func::get_raw, ra_meas::p, RA_ERR_ERROR, RA_ERR_PL_API_NOT_AVAIL, and ra_meas_handle_from_any_handle().

LIBRAAPI size_t ra_raw_get_unit rec_handle  rh,
unsigned int  ch,
size_t  start,
size_t  num_data,
double *  data
 

Parameters:
<rh> recording-handle
<ch> channel
<start> first sample
<num_data> number of samples
<data> buffer for samples
This function returns the sample's (raw-signal data) from the measurement mh and the recording rh. The first sample in data will be the sample number start (in sampleunits) and max. num_data are in data. The memory for buffer data must be allocated in calling function. The values are scaled to the unit of the channel.

Definition at line 2091 of file ra.c.

References _ra_set_error, plugin_struct::access, plugin_access_func::get_raw_unit, ra_meas::p, RA_ERR_ERROR, RA_ERR_PL_API_NOT_AVAIL, and ra_meas_handle_from_any_handle().

LIBRAAPI rec_handle ra_rec_get_first meas_handle  mh,
long  session
 

Parameters:
<mh> measurement-handle
<session> session number
Returns the first recording-handle of session session.

Definition at line 1822 of file ra.c.

References _ra_set_error, ra_meas::num_sessions, RA_ERR_OUT_OF_RANGE, ra_session::root_rec, and ra_meas::sessions.

Referenced by calc_x_scales(), get_eval_file(), and get_eval_file_xml().

LIBRAAPI rec_handle ra_rec_get_first_child rec_handle  rh  ) 
 

Parameters:
<rh> recording-handle
Returns the first child-recording of recording rh.

Definition at line 1857 of file ra.c.

LIBRAAPI rec_handle ra_rec_get_next rec_handle  rh  ) 
 

Parameters:
<rh> recording-handle
Returns the next recording which follows recording rh.

Definition at line 1843 of file ra.c.

LIBRAAPI sum_handle ra_sum_add class_handle  clh,
const char *  id,
const char *  name,
const char *  desc
 

Definition at line 2075 of file eval.c.

References _ra_set_error, eval_summary::ascii_id, eval_summary::evclass, eval_summary::handle_id, MAX_ID_LEN, eval_class::meas, eval_summary::meas, RA_ERR_NONE, ra_eval_attribute_set(), RA_HANDLE_EVAL_SUMMARY, ra_list_add(), ra_sum_delete(), ra_value_free(), ra_value_malloc(), ra_value_set_string(), and eval_class::summaries.

Referenced by add_summaries_orig().

LIBRAAPI int ra_sum_add_ch sum_handle  sh,
long  ch,
long  fiducial_offset,
long  num_dim,
const char **  dim_unit,
const char **  dim_name
 

Definition at line 2124 of file eval.c.

References _ra_set_error, eval_sum_ch_desc::ch, eval_summary::ch_desc, eval_sum_ch_desc::data_idx, eval_sum_ch_desc::fiducial_offset, eval_sum_ch_desc::name, eval_summary::num_ch, eval_summary::num_data_elements, eval_sum_ch_desc::num_dim, RA_ERR_NONE, and eval_sum_ch_desc::unit.

Referenced by add_sum_ch().

LIBRAAPI long ra_sum_add_part sum_handle  sh,
long  num_events,
const long *  events_based_on
 

Definition at line 2273 of file eval.c.

References _ra_set_error, eval_sum_data::data, eval_sum_data::event_ids, eval_sum_data::id, eval_summary::last_data_id, eval_summary::num_data_elements, eval_sum_data::num_events, RA_ERR_NONE, ra_list_add(), ra_value_malloc(), and eval_summary::sum.

Referenced by add_sum_part_orig().

LIBRAAPI int ra_sum_del_part sum_handle  sh,
long  part_id
 

Definition at line 2303 of file eval.c.

References _ra_set_error, eval_sum_data::data, eval_sum_data::event_ids, eval_sum_data::id, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, ra_list_del(), ra_value_free(), and eval_summary::sum.

Referenced by ra_sum_delete().

LIBRAAPI int ra_sum_delete sum_handle  sh  ) 
 

Definition at line 2174 of file eval.c.

References _ra_set_error, eval_summary::ch_desc, eval_sum_ch_desc::data_idx, eval_summary::evclass, eval_sum_data::id, eval_sum_ch_desc::name, eval_sum_ch_desc::num_dim, RA_ERR_NONE, ra_list_del(), ra_sum_del_part(), eval_summary::sum, eval_class::summaries, and eval_sum_ch_desc::unit.

Referenced by ra_class_delete(), and ra_sum_add().

LIBRAAPI int ra_sum_get class_handle  clh,
const char *  id,
value_handle  vh
 

Definition at line 2223 of file eval.c.

References _ra_set_error, eval_summary::ascii_id, eval_summary::next, RA_ERR_NONE, ra_list_len(), ra_value_reset(), ra_value_set_voidp_array(), and eval_class::summaries.

LIBRAAPI int ra_sum_get_part_all sum_handle  sh,
value_handle  vh
 

LIBRAAPI int ra_sum_get_part_data sum_handle  sh,
long  part_id,
long  channel,
long  dim,
value_handle  vh
 

Definition at line 2382 of file eval.c.

References _ra_set_error, eval_sum_data::data, get_sum_data_idx(), eval_sum_data::id, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, ra_value_copy(), and eval_summary::sum.

LIBRAAPI int ra_sum_get_part_events sum_handle  sh,
long  part_id,
value_handle  vh
 

Definition at line 2419 of file eval.c.

References _ra_set_error, eval_sum_data::event_ids, eval_sum_data::id, eval_sum_data::num_events, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, ra_value_set_long_array(), and eval_summary::sum.

LIBRAAPI int ra_sum_set_part_data sum_handle  sh,
long  part_id,
long  channel,
long  dim,
value_handle  vh
 

Definition at line 2345 of file eval.c.

References _ra_set_error, eval_sum_data::data, get_sum_data_idx(), eval_sum_data::id, RA_ERR_NONE, RA_ERR_OUT_OF_RANGE, ra_value_copy(), and eval_summary::sum.

Referenced by add_sum_part_orig().

LIBRAAPI int ra_value_copy value_handle  dest,
value_handle  src
 

Parameters:
<dest> destination value-handle
<src> source value-handle
This function copies the values from one value-handle to another value-handle and the name and description. The remaining fields are not copied.

Definition at line 1179 of file value.c.

References ra_value::d, ra_value::desc, free_mem(), ra_value::id, ra_value::name, ra_value::num_values, RA_VALUE_DESC_MAX, RA_VALUE_NAME_MAX, ra_value_set_double(), ra_value_set_double_array(), ra_value_set_long(), ra_value_set_long_array(), ra_value_set_short(), ra_value_set_short_array(), ra_value_set_string(), ra_value_set_string_array(), ra_value_set_vh_array(), ra_value_set_voidp(), ra_value_set_voidp_array(), RA_VALUE_TYPE_CHAR, RA_VALUE_TYPE_CHAR_ARRAY, RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_DOUBLE_ARRAY, RA_VALUE_TYPE_LONG, RA_VALUE_TYPE_LONG_ARRAY, RA_VALUE_TYPE_SHORT, RA_VALUE_TYPE_SHORT_ARRAY, RA_VALUE_TYPE_VH_ARRAY, RA_VALUE_TYPE_VOIDP, RA_VALUE_TYPE_VOIDP_ARRAY, ra_value::s, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by ra_eval_attribute_get(), ra_eval_attribute_set(), ra_proc_get_result(), ra_sum_get_part_data(), ra_sum_set_part_data(), ra_value_get_single_elem(), and ra_value_set_vh_array().

LIBRAAPI void ra_value_free value_handle  vh  ) 
 

Parameters:
<vh> value-handle
Frees the memory asocciated with vh.

Definition at line 61 of file value.c.

References free_mem(), and valid_value_handle().

Referenced by add_class_orig(), add_eval_orig(), add_events_orig(), add_prop_orig(), add_sum_ch(), add_sum_part_orig(), add_summaries_orig(), add_values_orig(), calc_x_scales(), copy_move_meas(), create_auto_class(), create_auto_prop(), delete_attributes(), do_post_processing(), free_eval_infos(), free_mem(), get_eval_file(), get_eval_file_xml(), post_process_ecg(), ra_class_add(), ra_class_add_predef(), ra_eval_add(), ra_eval_attribute_unset(), ra_eval_delete(), ra_meas_delete(), ra_meas_move(), ra_prop_add(), ra_prop_add_predef(), ra_sum_add(), ra_sum_del_part(), read_evals_xml(), and write_evals_xml().

LIBRAAPI const char* ra_value_get_desc value_handle  vh  ) 
 

Parameters:
<vh> value-handle
Returns a character pointer to the description of the info set in vh. The pointer is valid until vh is free'd or a new info was retrived.

Definition at line 217 of file value.c.

References ra_value::desc, ra_value::desc_locale, RA_VALUE_DESC_MAX, utf8_to_local(), and valid_value_handle().

LIBRAAPI double ra_value_get_double value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns the double value set in vh.

Definition at line 860 of file value.c.

References RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_LONG, RA_VALUE_TYPE_SHORT, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by add_prop_orig(), calc_x_scales(), ra_prop_add_predef(), ra_prop_get_events(), ra_prop_set_value(), set_option(), and write_evals_xml().

LIBRAAPI const double* ra_value_get_double_array value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a pointer to the double array stored in vh. The pointer is valid until vh is used in another function or vh is freed. The number of elements of the array can be get by calling ra_value_get_num_elem().

Definition at line 1035 of file value.c.

References RA_VALUE_TYPE_DOUBLE_ARRAY, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by ra_prop_set_value(), and set_option().

LIBRAAPI long ra_value_get_info value_handle  vh  ) 
 

Parameters:
<vh> value-handle
Returns the id of the info set in vh. Check in ra_defines.h for for the meaning of info-id (RA_INFO_*).

Definition at line 179 of file value.c.

References ra_value::id, RA_INFO_NONE, and valid_value_handle().

Referenced by ra_info_get_by_name().

LIBRAAPI long ra_value_get_long value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns the long value set in vh.

Definition at line 828 of file value.c.

References RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_LONG, RA_VALUE_TYPE_SHORT, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by add_prop_orig(), add_sum_ch(), calc_x_scales(), get_eval_file(), get_eval_file_xml(), ra_meas_delete(), ra_prop_add_predef(), ra_prop_get_events(), ra_prop_set_value(), and set_option().

LIBRAAPI const long* ra_value_get_long_array value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a pointer to the long array stored in vh. The pointer is valid until vh is used in another function or vh is freed. The number of elements of the array can be get by calling ra_value_get_num_elem().

Definition at line 1006 of file value.c.

References RA_VALUE_TYPE_LONG_ARRAY, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by add_events_orig(), add_sum_part_orig(), add_summaries_orig(), add_values_orig(), create_auto_class(), create_auto_prop(), ra_prop_set_value(), and set_option().

LIBRAAPI const char* ra_value_get_name value_handle  vh  ) 
 

Parameters:
<vh> value-handle
Returns a character pointer to the name of the info set in vh. The pointer is valid until vh is free'd or a new info was retrived.

Definition at line 197 of file value.c.

References ra_value::name, ra_value::name_locale, RA_VALUE_NAME_MAX, utf8_to_local(), and valid_value_handle().

LIBRAAPI long ra_value_get_num_elem value_handle  vh  ) 
 

Parameters:
<vh> value-handle
When an array is stored in vh, the number of elements of the array is returned.

Definition at line 161 of file value.c.

References ra_value::num_values, and valid_value_handle().

Referenced by add_events_orig(), add_sum_ch(), add_sum_part_orig(), add_summaries_orig(), add_values_orig(), copy_move_meas(), create_auto_class(), create_auto_prop(), do_post_processing(), ra_eval_delete(), ra_eval_save_result(), ra_meas_delete(), ra_prop_set_value(), and set_option().

LIBRAAPI long ra_value_get_number value_handle  vh  ) 
 

Parameters:
<vh> value-handle
Returns the number number set in the value-handle vh.

Definition at line 258 of file value.c.

References ra_value::number, and valid_value_handle().

Referenced by eval_get_info().

LIBRAAPI short ra_value_get_short value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns the short value set in vh.

Definition at line 796 of file value.c.

References RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_LONG, RA_VALUE_TYPE_SHORT, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by ra_prop_set_value(), and set_option().

LIBRAAPI const short* ra_value_get_short_array value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a pointer to the short array stored in vh. The pointer is valid until vh is used in another function or vh is freed. The number of elements of the array can be get by calling ra_value_get_num_elem().

Definition at line 977 of file value.c.

References RA_VALUE_TYPE_SHORT_ARRAY, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by ra_prop_set_value(), and set_option().

LIBRAAPI int ra_value_get_single_elem value_handle  dest,
value_handle  src,
long  elem_num
 

Parameters:
<dest> destination value-handle
<src> source value-handle
<elem_num> zero-based index of the value which has to be copied
This function copies one element from value-handle to another value-handle and the name and description. The remaining fields are not copied. The function is helpfull when a single value from an array, stored in a value-handle, is needed for another function expecting a single value in a value-handle.

Definition at line 1255 of file value.c.

References ra_value::can_be_changed, ra_value::d, ra_value::desc, free_mem(), ra_value::id, ra_value::name, ra_value::num_values, ra_value_copy(), RA_VALUE_DESC_MAX, RA_VALUE_NAME_MAX, ra_value_set_double(), ra_value_set_long(), ra_value_set_short(), ra_value_set_string(), ra_value_set_voidp(), RA_VALUE_TYPE_CHAR, RA_VALUE_TYPE_CHAR_ARRAY, RA_VALUE_TYPE_DOUBLE, RA_VALUE_TYPE_DOUBLE_ARRAY, RA_VALUE_TYPE_LONG, RA_VALUE_TYPE_LONG_ARRAY, RA_VALUE_TYPE_SHORT, RA_VALUE_TYPE_SHORT_ARRAY, RA_VALUE_TYPE_VH_ARRAY, RA_VALUE_TYPE_VOIDP, RA_VALUE_TYPE_VOIDP_ARRAY, ra_value::s, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by add_values_orig(), and create_auto_prop().

LIBRAAPI const char* ra_value_get_string value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a character pointer to the string set in vh. The pointer is valid until vh is used in another function or vh is freed.

Definition at line 894 of file value.c.

References RA_VALUE_TYPE_CHAR, ra_value::utype, valid_value_handle(), ra_value::value_is_valid, and ra_value::value_locale.

Referenced by add_class_orig(), add_eval_orig(), add_prop_orig(), add_summaries_orig(), copy_move_meas(), get_eval_file(), get_eval_file_xml(), ra_class_add_predef(), ra_meas_delete(), ra_meas_move(), ra_prop_add_predef(), and ra_prop_set_value().

LIBRAAPI const char** ra_value_get_string_array value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a pointer to the character pointer array stored in vh. The pointer is valid until vh is used in another function or vh is freed. The number of elements of the array can be get by calling ra_value_get_num_elem().

Definition at line 1064 of file value.c.

References RA_VALUE_TYPE_CHAR_ARRAY, ra_value::utype, valid_value_handle(), ra_value::value_is_valid, and ra_value::value_locale.

Referenced by add_sum_ch(), copy_move_meas(), ra_meas_delete(), and ra_prop_set_value().

LIBRAAPI const char** ra_value_get_string_array_utf8 value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a pointer to the character pointer array stored in vh. The strings are UTF-8 encoded. The pointer is valid until vh is used in another function or vh is freed. The number of elements of the array can be get by calling ra_value_get_num_elem().

Definition at line 1093 of file value.c.

References RA_VALUE_TYPE_CHAR_ARRAY, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

LIBRAAPI const char* ra_value_get_string_utf8 value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a character pointer to the string set in vh. The string is UTF-8 encoded. The pointer is valid until vh is used in another function or vh is freed.

Definition at line 922 of file value.c.

References RA_VALUE_TYPE_CHAR, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by set_option().

LIBRAAPI long ra_value_get_type value_handle  vh  ) 
 

Parameters:
<vh> value-handle
Return the type of the value stored in vh. Check in ra_defines.h for the meaning of the returned value (RA_VALUE_TYPE_*).

Definition at line 126 of file value.c.

References RA_VALUE_TYPE_NONE, ra_value::utype, and valid_value_handle().

Referenced by ra_prop_set_value().

LIBRAAPI const value_handle* ra_value_get_vh_array value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a pointer to the value-handle array stored in vh. The pointer is valid until vh is used in another function or vh is freed. The number of elements of the array can be get by calling ra_value_get_num_elem().

Definition at line 1151 of file value.c.

References RA_VALUE_TYPE_VH_ARRAY, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

LIBRAAPI const void* ra_value_get_voidp value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns the void-pointer set in vh.

Definition at line 948 of file value.c.

References RA_VALUE_TYPE_VOIDP, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by set_option().

LIBRAAPI const void** ra_value_get_voidp_array value_handle  vh  ) 
 

Parameters:
<vh> value-handle
This function returns a pointer to the void-pointer array stored in vh. The pointer is valid until vh is used in another function or vh is freed. The number of elements of the array can be get by calling ra_value_get_num_elem().

Definition at line 1122 of file value.c.

References RA_VALUE_TYPE_VOIDP_ARRAY, ra_value::utype, valid_value_handle(), ra_value::value, and ra_value::value_is_valid.

Referenced by do_post_processing(), ra_eval_delete(), and set_option().

LIBRAAPI int ra_value_is_ok value_handle  vh  ) 
 

Parameters:
<vh> value-handle
Returns '1' if value stored in vh is valid, '0' if not.

Definition at line 143 of file value.c.

References valid_value_handle(), and ra_value::value_is_valid.

Referenced by add_class_orig(), add_events_orig(), add_prop_orig(), add_summaries_orig(), ra_prop_get_events(), and ra_prop_set_value().

LIBRAAPI value_handle ra_value_malloc  ) 
 

Returns a initialzed value-handle.

Definition at line 41 of file value.c.

References ra_value::handle_id, and RA_HANDLE_VALUE.

Referenced by add_class_orig(), add_eval_orig(), add_events_orig(), add_prop_orig(), add_sum_ch(), add_sum_part_orig(), add_summaries_orig(), add_values_orig(), calc_x_scales(), copy_move_meas(), create_auto_class(), create_auto_prop(), do_post_processing(), get_eval_file(), get_eval_file_xml(), post_process_ecg(), ra_class_add(), ra_class_add_predef(), ra_eval_add(), ra_eval_attribute_set(), ra_eval_delete(), ra_meas_delete(), ra_meas_move(), ra_prop_add(), ra_prop_add_predef(), ra_sum_add(), ra_sum_add_part(), ra_value_set_vh_array(), read_evals_xml(), and write_evals_xml().

LIBRAAPI void ra_value_reset value_handle  vh  ) 
 

Parameters:
<vh> value-handle
Reset value-handle vh.

Definition at line 108 of file value.c.

References free_mem(), and valid_value_handle().

Referenced by find_ra_info_by_name(), ra_class_get(), ra_class_get_events(), ra_eval_attribute_get(), ra_eval_attribute_list(), ra_eval_get_all(), ra_info_get(), ra_info_get_by_idx(), ra_lib_get_option(), ra_proc_get_result(), ra_prop_get_all(), ra_prop_get_events(), and ra_sum_get().

LIBRAAPI void ra_value_set_double value_handle  vh,
const double  value
 

Parameters:
<vh> value-handle
<value> value to set in ra_info
This function set the value in vh.

Definition at line 360 of file value.c.

References free_mem(), RA_VALUE_TYPE_DOUBLE, and valid_value_handle().

Referenced by fill_predef_prop_info(), fill_predef_prop_info_ascii(), get_option(), ra_prop_add(), ra_prop_get_value(), ra_value_copy(), and ra_value_get_single_elem().

LIBRAAPI void ra_value_set_double_array value_handle  vh,
const double *  array,
long  num
 

Parameters:
<vh> value-handle
<array> array to set in ra_info
<num> number of array elements
This function set the double array array with num elements in vh.

Definition at line 563 of file value.c.

References free_mem(), ra_alloc_mem, RA_VALUE_TYPE_DOUBLE_ARRAY, and valid_value_handle().

Referenced by get_option(), ra_prop_get_value(), and ra_value_copy().

LIBRAAPI void ra_value_set_long value_handle  vh,
const long  value
 

Parameters:
<vh> value-handle
<value> value to set in ra_info
This function set the value in vh.

Definition at line 338 of file value.c.

References free_mem(), RA_VALUE_TYPE_LONG, and valid_value_handle().

Referenced by eval_get_info(), fill_predef_prop_info(), fill_predef_prop_info_ascii(), get_lib_info(), get_option(), get_plugin_info(), get_proc_info(), ra_prop_add(), ra_prop_get_value(), ra_value_copy(), and ra_value_get_single_elem().

LIBRAAPI void ra_value_set_long_array value_handle  vh,
const long *  array,
long  num
 

Parameters:
<vh> value-handle
<array> array to set in ra_info
<num> number of array elements
This function set the long array array with num elements in vh.

Definition at line 532 of file value.c.

References free_mem(), ra_alloc_mem, RA_VALUE_TYPE_LONG_ARRAY, and valid_value_handle().

Referenced by get_option(), ra_class_get_events(), ra_prop_get_events(), ra_prop_get_value(), ra_sum_get_part_events(), and ra_value_copy().

LIBRAAPI int ra_value_set_number value_handle  vh,
long  number
 

Parameters:
<vh> value-handle
<number> number
Set the number number in the value-handle vh. This number is used when infos about channels, recording devices and plugins. number is also used when processing results are retrived.

Definition at line 239 of file value.c.

References ra_value::number, and valid_value_handle().

Referenced by calc_x_scales().

LIBRAAPI void ra_value_set_short value_handle  vh,
const short  value
 

Parameters:
<vh> value-handle
<value> value to set in ra_info
This function set the value in vh.

Definition at line 316 of file value.c.

References free_mem(), RA_VALUE_TYPE_SHORT, and valid_value_handle().

Referenced by get_option(), ra_prop_get_value(), ra_value_copy(), and ra_value_get_single_elem().

LIBRAAPI void ra_value_set_short_array value_handle  vh,
const short *  array,
long  num
 

Parameters:
<vh> value-handle
<array> array to set in ra_info
<num> number of array elements
This function set the short array array with num elements in vh.

Definition at line 501 of file value.c.

References free_mem(), ra_alloc_mem, RA_VALUE_TYPE_SHORT_ARRAY, and valid_value_handle().

Referenced by get_option(), ra_prop_get_ch(), ra_prop_get_value(), and ra_value_copy().

LIBRAAPI void ra_value_set_string value_handle  vh,
const char *  string
 

Parameters:
<vh> value-handle
<string> string to set in ra_info
This function set the string (`\0`-ended char *) in vh.

Definition at line 382 of file value.c.

References free_mem(), local_to_utf8(), ra_alloc_mem, RA_VALUE_TYPE_CHAR, and valid_value_handle().

Referenced by create_auto_class(), eval_get_info(), fill_predef_class_info(), fill_predef_class_info_ascii(), fill_predef_prop_info(), fill_predef_prop_info_ascii(), ra_class_add(), ra_eval_add(), ra_prop_add(), ra_prop_get_value(), ra_sum_add(), ra_value_copy(), ra_value_get_single_elem(), read_evals_xml(), and read_sets_xml().

LIBRAAPI void ra_value_set_string_array value_handle  vh,
const char **  array,
long  num
 

Parameters:
<vh> value-handle
<array> array to set in ra_info
<num> number of array elements
This function set the string-array array with num elements in vh.

Definition at line 594 of file value.c.

References free_mem(), ra_value::l, local_to_utf8(), ra_alloc_mem, RA_VALUE_TYPE_CHAR_ARRAY, and valid_value_handle().

Referenced by eval_get_info(), ra_eval_attribute_list(), ra_prop_get_value(), and ra_value_copy().

LIBRAAPI void ra_value_set_string_array_utf8 value_handle  vh,
const char **  array,
long  num
 

Parameters:
<vh> value-handle
<array> array to set in ra_info
<num> number of array elements
This function set the string-array 'array' with 'num' elements in vh. The strings in 'array' are expected to be UTF-8 encoded.

Definition at line 664 of file value.c.

References free_mem(), ra_value::l, ra_alloc_mem, RA_VALUE_TYPE_CHAR_ARRAY, utf8_to_local(), and valid_value_handle().

LIBRAAPI void ra_value_set_string_utf8 value_handle  vh,
const char *  string
 

Parameters:
<vh> value-handle
<string> string to set in ra_info
This function set the string (`\0`-ended char *) in vh.

Definition at line 430 of file value.c.

References free_mem(), ra_alloc_mem, RA_VALUE_TYPE_CHAR, utf8_to_local(), and valid_value_handle().

Referenced by get_lib_info(), get_option(), get_plugin_info(), and get_session_info().

LIBRAAPI void ra_value_set_vh_array value_handle  vh,
const value_handle array,
long  num
 

Parameters:
<vh> value-handle
<array> array to set in ra_value
<num> number of array elements
This function set the value-handle array 'array' with num elements in vh.

Definition at line 764 of file value.c.

References free_mem(), ra_value::l, ra_alloc_mem, ra_value_copy(), ra_value_malloc(), RA_VALUE_TYPE_VH_ARRAY, and valid_value_handle().

Referenced by ra_value_copy().

LIBRAAPI void ra_value_set_voidp value_handle  vh,
const void *  value
 

Parameters:
<vh> value-handle
<value> value to set in ra_info
This function set the value in vh.

Definition at line 478 of file value.c.

References free_mem(), RA_VALUE_TYPE_VOIDP, and valid_value_handle().

Referenced by post_process_ecg(), ra_value_copy(), and ra_value_get_single_elem().

LIBRAAPI void ra_value_set_voidp_array value_handle  vh,
const void **  array,
long  num
 

Parameters:
<vh> value-handle
<array> array to set in ra_info
<num> number of array elements
This function set the long array array with num elements in vh.

Definition at line 733 of file value.c.

References free_mem(), ra_alloc_mem, RA_VALUE_TYPE_VOIDP_ARRAY, and valid_value_handle().

Referenced by ra_class_get(), ra_eval_get_all(), ra_prop_get_all(), ra_sum_get(), and ra_value_copy().

LIBRAAPI int ra_view_get view_handle  vh  ) 
 

Parameters:
<vh> view-handle
This function creates/shows the GUI-element/window provided by a view-plugin. Please check plugin specific documentation what additional information is needed.

Definition at line 2293 of file ra.c.

References _ra_set_error, plugin_view_func::get_view, view_info::plugin, plugin_struct::ra, view_info::ra, RA_ERR_ERROR, RA_ERR_PL_API_NOT_AVAIL, and plugin_struct::view.


Generated on Fri May 27 11:33:15 2005 for libRASCH by  doxygen 1.4.2