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

save_xml_V1.c File Reference

Include dependency graph for save_xml_V1.c:

Go to the source code of this file.

Defines

#define _LIBRASCH_BUILD

Functions

LIBRAAPI int ra_eval_savexml (meas_handle mh, const char *file, int use_ascii)
 save evalution in XML format
int write_evals_xml (meas_handle mh, xmlNodePtr parent, int use_ascii)
 writes all evaluations
int write_sets_xml (struct eval *e, xmlNodePtr parent, int use_ascii)
 write event-sets
int write_events_start_end_xml (struct event_set *set, xmlNodePtr parent)
 write start- and end-time for event-sets
int write_props_xml (struct event_set *set, xmlNodePtr parent, int use_ascii)
 write event-properties
int write_events_xml (struct event_property *prop, xmlNodePtr parent)
 write event values using MIME64 encoding scheme
int write_events_xml_ascii (struct event_property *prop, xmlNodePtr parent)
 write event values as ASCII text
int write_ascii_short (xmlNodePtr p, short *data, long n, char *tag_name)
 write short event value
int write_ascii_long (xmlNodePtr p, long *data, long n, char *tag_name)
 write long event value
int write_ascii_double (xmlNodePtr p, double *data, long n, char *tag_name)
 write double event value
int write_ascii_char (xmlNodePtr p, char **data, long n, char *tag_name)
 write string event value
int write_ascii_short_array (xmlNodePtr p, short **data, short **ch, long *elem, long n, char *tag_name)
 write short array event values
int write_ascii_long_array (xmlNodePtr p, long **data, short **ch, long *elem, long n, char *tag_name)
 write long array event values
int write_ascii_double_array (xmlNodePtr p, double **data, short **ch, long *elem, long n, char *tag_name)
 write double array event values
int write_templates_xml (struct event_set *set, xmlNodePtr parent)
 write templates
int find_prop_name (struct eval *e, struct template_struct *templ, char *name)
 return a specific event-property
int write_single_template_xml (struct template_struct *templ, int index, struct single_template *st, xmlNodePtr parent)
 write a single template


Define Documentation

#define _LIBRASCH_BUILD
 

Definition at line 33 of file save_xml_V1.c.


Function Documentation

int find_prop_name struct eval e,
struct template_struct *  templ,
char *  name
 

Parameters:
<e> pointer to an evaluation structure
<templ> pointer to the template structure
<name> name of the event-property looked for
The function returns the event-property named 'name'. TODO: check why there are two different functions to get a property name (this and one in load_xml.c).

Definition at line 744 of file save_xml_V1.c.

References EVAL_MAX_NAME.

Referenced by write_templates_xml().

LIBRAAPI int ra_eval_savexml meas_handle  mh,
const char *  file,
int  use_ascii
 

Parameters:
<mh> measurement handle
<file> name of the evaluation file (optional)
<use_ascii> flag if event-values should be stored as ASCII-text (=1) or as binary MIME64 encoded data (=0)
This function saves the evaluation(s) that belongs to the measurement mh. If no filename file is given, the default-filename will be used. If use_ascii is !=0 than the event values are stored as ASCII text.

Definition at line 50 of file save_xml_V1.c.

References _ra_set_error, get_eval_file_xml(), MAX_PATH_RA, and write_evals_xml().

int write_ascii_char xmlNodePtr  p,
char **  data,
long  n,
char *  tag_name
 

Parameters:
<p> parent which will be above XML tag
<data> string data to be stored
<n> number of values
<tag_name> name of the XML tag
The function writes string values in a XML tag named 'tag_name'. The tag will be below 'parent'.

Definition at line 542 of file save_xml_V1.c.

Referenced by write_events_xml_ascii().

int write_ascii_double xmlNodePtr  p,
double *  data,
long  n,
char *  tag_name
 

Parameters:
<p> parent which will be above XML tag
<data> double data to be stored
<n> number of values
<tag_name> name of the XML tag
The function writes double values in a XML tag named 'tag_name'. The tag will be below 'parent'.

Definition at line 507 of file save_xml_V1.c.

Referenced by write_events_xml_ascii().

int write_ascii_double_array xmlNodePtr  p,
double **  data,
short **  ch,
long *  elem,
long  n,
char *  tag_name
 

Parameters:
<p> parent which will be above XML tag
<data> data to be stored
<ch> channel number for which the value belongs
<elem> number of elements for each event
<n> number of values
<tag_name> name of the XML tag
The function writes double array values in a XML tag named 'tag_name'. The tag will be below 'parent'. Additionally it stores (if necessary) the recording channel, which belongs to each value. The number of array elements can be different for each event.

Definition at line 659 of file save_xml_V1.c.

Referenced by write_events_xml_ascii().

int write_ascii_long xmlNodePtr  p,
long *  data,
long  n,
char *  tag_name
 

Parameters:
<p> parent which will be above XML tag
<data> long data to be stored
<n> number of values
<tag_name> name of the XML tag
The function writes long values in a XML tag named 'tag_name'. The tag will be below 'parent'.

Definition at line 475 of file save_xml_V1.c.

Referenced by write_events_xml_ascii().

int write_ascii_long_array xmlNodePtr  p,
long **  data,
short **  ch,
long *  elem,
long  n,
char *  tag_name
 

Parameters:
<p> parent which will be above XML tag
<data> data to be stored
<ch> channel number for which the value belongs
<elem> number of elements for each event
<n> number of values
<tag_name> name of the XML tag
The function writes long array values in a XML tag named 'tag_name'. The tag will be below 'parent'. Additionally it stores (if necessary) the recording channel, which belongs to each value. The number of array elements can be different for each event.

Definition at line 618 of file save_xml_V1.c.

Referenced by write_events_xml_ascii().

int write_ascii_short xmlNodePtr  p,
short *  data,
long  n,
char *  tag_name
 

Parameters:
<p> parent which will be above XML tag
<data> short data to be stored
<n> number of values
<tag_name> name of the XML tag
The function writes short values in a XML tag named 'tag_name'. The tag will be below 'parent'.

Definition at line 443 of file save_xml_V1.c.

Referenced by write_events_xml_ascii().

int write_ascii_short_array xmlNodePtr  p,
short **  data,
short **  ch,
long *  elem,
long  n,
char *  tag_name
 

Parameters:
<p> parent which will be above XML tag
<data> data to be stored
<ch> channel number for which the value belongs
<elem> number of elements for each event
<n> number of values
<tag_name> name of the XML tag
The function writes short array values in a XML tag named 'tag_name'. The tag will be below 'parent'. Additionally it stores (if necessary) the recording channel, which belongs to each value. The number of array elements can be different for each event.

Definition at line 577 of file save_xml_V1.c.

Referenced by write_events_xml_ascii().

int write_evals_xml meas_handle  mh,
xmlNodePtr  parent,
int  use_ascii
 

Parameters:
<mh> measurement handle
<parent> pointer of the parent XML node
<use_ascii> flag if event-values should be stored as ASCII-text (=1) or as binary MIME64 encoded data (=0)
The function writes all evaluations below the XML node 'parent'.

Definition at line 93 of file save_xml_V1.c.

References eval::def, eval::next, eval::original, ra_info_get(), RA_INFO_MAX_SAMPLERATE_D, ra_value_free(), ra_value_get_double(), ra_value_malloc(), and write_sets_xml().

Referenced by ra_eval_savexml().

int write_events_start_end_xml struct event_set *  set,
xmlNodePtr  parent
 

Parameters:
<set> pointer to an event-set structure
<parent> pointer of the parent XML node
The function writes all start- and end-times for the event-set 'set' below the XML node 'parent'.

Definition at line 223 of file save_xml_V1.c.

References encode_base64().

Referenced by write_sets_xml().

int write_events_xml struct event_property *  prop,
xmlNodePtr  parent
 

Parameters:
<prop> pointer to an event-property structure
<parent> pointer of the parent XML node
The function writes the event values for event-property 'prop' below the XML node 'parent' using a MIME64 encoding scheme for binary data.

Definition at line 337 of file save_xml_V1.c.

References encode_base64(), EVPROP_TYPE_CHAR, EVPROP_TYPE_DOUBLE, EVPROP_TYPE_LONG, and EVPROP_TYPE_SHORT.

Referenced by write_props_xml().

int write_events_xml_ascii struct event_property *  prop,
xmlNodePtr  parent
 

Parameters:
<prop> pointer to an event-property structure
<parent> pointer of the parent XML node
The function writes the event values for event-property 'prop' below the XML node 'parent'. The values are stored in there own XML tag as ASCII text.

Definition at line 396 of file save_xml_V1.c.

References EVPROP_TYPE_CHAR, EVPROP_TYPE_DOUBLE, EVPROP_TYPE_DOUBLE_ARRAY, EVPROP_TYPE_LONG, EVPROP_TYPE_LONG_ARRAY, EVPROP_TYPE_SHORT, EVPROP_TYPE_SHORT_ARRAY, write_ascii_char(), write_ascii_double(), write_ascii_double_array(), write_ascii_long(), write_ascii_long_array(), write_ascii_short(), and write_ascii_short_array().

Referenced by write_props_xml().

int write_props_xml struct event_set *  set,
xmlNodePtr  parent,
int  use_ascii
 

Parameters:
<set> pointer to an event-set structure
<parent> pointer of the parent XML node
<use_ascii> flag if event-values should be stored as ASCII-text (=1) or as binary MIME64 encoded data (=0)
The function writes all event-properties below the XML node 'parent'.

Definition at line 257 of file save_xml_V1.c.

References EVPROP_TYPE_CHAR, EVPROP_TYPE_DOUBLE, EVPROP_TYPE_DOUBLE_ARRAY, EVPROP_TYPE_LONG, EVPROP_TYPE_LONG_ARRAY, EVPROP_TYPE_SHORT, EVPROP_TYPE_SHORT_ARRAY, write_events_xml(), and write_events_xml_ascii().

Referenced by write_sets_xml().

int write_sets_xml struct eval e,
xmlNodePtr  parent,
int  use_ascii
 

Parameters:
<e> pointer to an evaluation structure
<parent> pointer of the parent XML node
<use_ascii> flag if event-values should be stored as ASCII-text (=1) or as binary MIME64 encoded data (=0)
The function write all event-sets below the XML node 'parent'.

Definition at line 161 of file save_xml_V1.c.

References write_events_start_end_xml(), write_props_xml(), and write_templates_xml().

Referenced by write_evals_xml().

int write_single_template_xml struct template_struct *  templ,
int  index,
struct single_template *  st,
xmlNodePtr  parent
 

Parameters:
<templ> pointer to an template structure
<index> index of the template which should be stored
<st> pointer to a single-template structure
<parent> pointer of the parent XML node
The function writed a single template information below the XML node 'parent'.

Definition at line 775 of file save_xml_V1.c.

References encode_base64().

Referenced by write_templates_xml().

int write_templates_xml struct event_set *  set,
xmlNodePtr  parent
 

Parameters:
<set> pointer to an event-set structure
<parent> pointer of the parent XML node
The function writes all template informations below the XML node 'parent'.

Definition at line 695 of file save_xml_V1.c.

References EVAL_MAX_NAME, find_prop_name(), and write_single_template_xml().

Referenced by write_sets_xml().


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