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: read_evaluation.c File Reference

read_evaluation.c File Reference

Include dependency graph for read_evaluation.c:

Go to the source code of this file.

Defines

#define _LIBRASCH_BUILD

Functions

int read_evaluation (meas_handle mh)
 get the original evaluation from a measurement
eval_handle add_eval_orig (meas_handle mh, struct plugin_struct *pl)
 create original evaluation in a measurement
int add_class_orig (meas_handle mh, eval_handle eh, struct plugin_struct *pl)
 add original event-classes
int add_events_orig (class_handle clh, struct plugin_struct *pl, long **ev_ids, long *num)
 add original events
int add_prop_orig (class_handle clh, struct plugin_struct *pl, long *ev_ids, long num_ev)
 add original event properties
int add_values_orig (prop_handle ph, struct plugin_struct *pl, long *ev_ids, long num_ev)
 add original event values
int add_summaries_orig (class_handle clh, struct plugin_struct *pl)
 add event-summaries from a measurement
int add_sum_ch (class_handle clh, sum_handle sh, long sum_num, long num_ch, const long *ch, struct plugin_struct *pl)
int add_sum_part_orig (sum_handle sh, long n_ch, long n_dim, struct plugin_struct *pl)
int do_post_processing (meas_handle mh, eval_handle eh)
 process original evaluation after getting the data
void post_process_ecg (meas_handle mh, eval_handle eh, class_handle clh)
 post-process ecg data


Detailed Description

This file provides the part of the API to access evaluations.

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

Definition in file read_evaluation.c.


Define Documentation

#define _LIBRASCH_BUILD
 

Definition at line 23 of file read_evaluation.c.


Function Documentation

int add_class_orig meas_handle  mh,
eval_handle  eh,
struct plugin_struct pl
 

Parameters:
<mh> measurement handle
<pl> pointer to a plugin structure
The function adds all event-classes from a measurement to the original evaluation.

Definition at line 117 of file read_evaluation.c.

References plugin_struct::access, add_events_orig(), add_prop_orig(), add_summaries_orig(), plugin_access_func::get_class_info, plugin_access_func::get_class_num, ra_class_add(), ra_value_free(), ra_value_get_string(), ra_value_is_ok(), and ra_value_malloc().

Referenced by read_evaluation().

eval_handle add_eval_orig meas_handle  mh,
struct plugin_struct pl
 

Parameters:
<mh> measurement handle
<pl> pointer to a plugin structure
The function creates in a measurement the original evaluation.

Definition at line 80 of file read_evaluation.c.

References plugin_struct::access, plugin_access_func::get_eval_info, ra_eval_add(), ra_value_free(), ra_value_get_string(), and ra_value_malloc().

Referenced by read_evaluation().

int add_events_orig class_handle  clh,
struct plugin_struct pl,
long **  ev_ids,
long *  num
 

Parameters:
<clh> event-class handle
<pl> pointer to a plugin structure
The function adds all events from a measurement to the original evaluation.

Definition at line 178 of file read_evaluation.c.

References plugin_struct::access, plugin_access_func::get_ev_info, ra_class_add_event(), ra_value_free(), ra_value_get_long_array(), ra_value_get_num_elem(), ra_value_is_ok(), and ra_value_malloc().

Referenced by add_class_orig().

int add_prop_orig class_handle  clh,
struct plugin_struct pl,
long *  ev_ids,
long  num_ev
 

Parameters:
<clh> event-class handle
<pl> pointer to a plugin structure
The function adds all event-properties from a measurement to the original evaluation.

Definition at line 240 of file read_evaluation.c.

References plugin_struct::access, add_values_orig(), plugin_access_func::get_prop_info, plugin_access_func::get_prop_num, ra_prop_add(), ra_value_free(), ra_value_get_double(), ra_value_get_long(), ra_value_get_string(), ra_value_is_ok(), and ra_value_malloc().

Referenced by add_class_orig().

int add_sum_ch class_handle  clh,
sum_handle  sh,
long  sum_num,
long  num_ch,
const long *  ch,
struct plugin_struct pl
 

Definition at line 414 of file read_evaluation.c.

References plugin_struct::access, add_sum_part_orig(), plugin_access_func::get_sum_ch_info, ra_sum_add_ch(), ra_value_free(), ra_value_get_long(), ra_value_get_num_elem(), ra_value_get_string_array(), and ra_value_malloc().

Referenced by add_summaries_orig().

int add_sum_part_orig sum_handle  sh,
long  n_ch,
long  n_dim,
struct plugin_struct pl
 

Definition at line 454 of file read_evaluation.c.

References plugin_struct::access, plugin_access_func::get_sum_events, plugin_access_func::get_sum_part_data, ra_sum_add_part(), ra_sum_set_part_data(), ra_value_free(), ra_value_get_long_array(), ra_value_get_num_elem(), and ra_value_malloc().

Referenced by add_sum_ch().

int add_summaries_orig class_handle  clh,
struct plugin_struct pl
 

Parameters:
<mh> measurement handle
<pl> pointer to a plugin structure
The function adds the original templates (stored in a measurement) in the evaluation 'e'.

Definition at line 362 of file read_evaluation.c.

References plugin_struct::access, add_sum_ch(), plugin_access_func::get_sum_ch_info, plugin_access_func::get_sum_info, plugin_access_func::get_sum_num, ra_sum_add(), ra_value_free(), ra_value_get_long_array(), ra_value_get_num_elem(), ra_value_get_string(), ra_value_is_ok(), and ra_value_malloc().

Referenced by add_class_orig().

int add_values_orig prop_handle  ph,
struct plugin_struct pl,
long *  ev_ids,
long  num_ev
 

Parameters:
<ph> event-property handle
<pl> pointer to a plugin structure
The function sets the original event values (stored in a measurement) in the evaluation 'e' for the given event properties 'proph'.

Definition at line 311 of file read_evaluation.c.

References plugin_struct::access, plugin_access_func::get_ev_value, ra_prop_set_value(), ra_value_free(), ra_value_get_long_array(), ra_value_get_num_elem(), ra_value_get_single_elem(), and ra_value_malloc().

Referenced by add_prop_orig().

int do_post_processing meas_handle  mh,
eval_handle  eh
 

Parameters:
<mh> measurement handle
<e> pointer to an evaluation structure
The function performs a post-processing on the original evaluation after the values are got from the measurement. TODO: Think about how all this post-processing stuff can be implemented in a more general way.

Definition at line 511 of file read_evaluation.c.

References post_process_ecg(), ra_class_get(), ra_prop_get(), ra_value_free(), ra_value_get_num_elem(), ra_value_get_voidp_array(), and ra_value_malloc().

Referenced by read_evaluation().

void post_process_ecg meas_handle  mh,
eval_handle  eh,
class_handle  clh
 

Parameters:
<mh> measurement handle
<e> pointer to an evaluation structure
The function performs a post-processing for ecg values.

Definition at line 564 of file read_evaluation.c.

References plugin_struct::ra, ra_lib_handle_from_any_handle(), ra_lib_set_option(), ra_plugin_get_by_name(), ra_proc_do(), ra_proc_free(), ra_proc_get(), ra_value_free(), ra_value_malloc(), and ra_value_set_voidp().

Referenced by do_post_processing().

int read_evaluation meas_handle  mh  ) 
 

Parameters:
<mh> measurement handle
The function gets the original evaluation from a measurement.

Definition at line 34 of file read_evaluation.c.

References _ra_set_error, add_class_orig(), add_eval_orig(), do_post_processing(), ra_meas::p, RA_ERR_READ_EVAL, ra_eval_edit_cancel(), ra_eval_edit_complete(), ra_eval_edit_start(), and ra_eval_get_original().

Referenced by ra_meas_open().


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