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: pl_general.h Source File

pl_general.h

Go to the documentation of this file.
00001 
00010 /*----------------------------------------------------------------------------
00011  *
00012  * Copyright (C) 2002-2005, Raphael Schneider
00013  * See the file COPYING for information on usage and redistribution.
00014  *
00015  * $Id: pl_general.h 797 2005-05-10 08:37:10Z rasch $
00016  *
00017  *--------------------------------------------------------------------------*/
00018 
00019 #ifndef PL_GENERAL_H
00020 #define PL_GENERAL_H
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026 #include <ra_priv.h>
00027 #include <ra.h>
00028 
00038 struct meta_info
00039 {
00040         int id;
00041         char *ascii_id;
00042         char *name;
00043         char *desc;
00044         int type;
00045 };                              /* struct meta_info */
00046 
00047 #ifdef _DEFINE_INFO_STRUCTS
00048 /* order of elements must match the order of enum ra_info_ids in ra_defines.h
00049    (because bsearch() is used in get_meta_info()) */
00050 static struct meta_info _meta[] = {
00051         {RA_INFO_NUM_PLUGINS_L, "num_plugins", gettext_noop("#plugins"),
00052          "", RA_VALUE_TYPE_LONG},
00053 
00054         {RA_INFO_VERSION_C, "lib_version", gettext_noop("libRASCH version"),
00055          gettext_noop("version of libRASCH"), RA_VALUE_TYPE_CHAR},
00056 
00057 
00058         {RA_INFO_NUM_SESSIONS_L, "num_sessions", gettext_noop("#sessions"),
00059          "", RA_VALUE_TYPE_LONG},
00060 
00061         {RA_INFO_NUM_OBJ_INFOS_L, "num_obj_infos", gettext_noop("#obj. infos"),
00062          "", RA_VALUE_TYPE_LONG},
00063 
00064         {RA_INFO_NUM_REC_GEN_INFOS_L, "num_rec_gen_infos", gettext_noop("#general rec. infos"),
00065          "", RA_VALUE_TYPE_LONG},
00066 
00067         {RA_INFO_NUM_REC_DEV_INFOS_L, "num_rec_dev_infos", gettext_noop("#device infos"),
00068          "", RA_VALUE_TYPE_LONG},
00069 
00070         {RA_INFO_NUM_REC_CH_INFOS_L, "num_rec_ch_infos", gettext_noop("#ch. infos"),
00071          "", RA_VALUE_TYPE_LONG},
00072 
00073         {RA_INFO_MAX_SAMPLERATE_D, "max_samplerate", gettext_noop("max. samplerate"),
00074          gettext_noop("maximum samplrate used in measurement"), RA_VALUE_TYPE_DOUBLE},
00075 
00076         {RA_INFO_CH_XSCALE_D, "ch_xscale", gettext_noop("x-axis scale"),
00077          gettext_noop("factor for a channel to scale positions"), RA_VALUE_TYPE_DOUBLE}, 
00078 
00079         {RA_INFO_SIZE_L, "meas_size", gettext_noop("size [Bytes]"),
00080          gettext_noop("size needed on disc of measurement in Bytes"), RA_VALUE_TYPE_LONG},
00081 
00082         {RA_INFO_FILES_CA, "meas_files", gettext_noop("files"),
00083          gettext_noop("files belonging to measurement"), RA_VALUE_TYPE_CHAR_ARRAY},
00084 
00085         {RA_INFO_PATH_C, "meas_path", gettext_noop("path"),
00086          gettext_noop("full path of measurement incl. measurement name"), RA_VALUE_TYPE_CHAR},
00087 
00088         {RA_INFO_DIR_L, "meas_in_dir", gettext_noop("data in dir"),
00089          gettext_noop("flag if measurement was saved in directory"), RA_VALUE_TYPE_LONG},
00090 
00091 
00092         {RA_INFO_OBJ_PERSON_NAME_C, "person_name", gettext_noop("Name"),
00093          gettext_noop("name of the person measured"), RA_VALUE_TYPE_CHAR},
00094 
00095         {RA_INFO_OBJ_PERSON_FORENAME_C, "person_forename", gettext_noop("Forename"),
00096          gettext_noop("forename of the person measured"), RA_VALUE_TYPE_CHAR},
00097 
00098         {RA_INFO_OBJ_PERSON_BIRTHDAY_C, "person_birthday", gettext_noop("Birthday"),
00099          gettext_noop("birthday of the person measured"), RA_VALUE_TYPE_CHAR},
00100 
00101         {RA_INFO_OBJ_PERSON_GENDER_C, "person_gender", gettext_noop("gender"),
00102          gettext_noop("gender of the person measured"), RA_VALUE_TYPE_CHAR},
00103 
00104         {RA_INFO_OBJ_PERSON_AGE_L, "person_age", gettext_noop("Age"),
00105          gettext_noop("age of the person measured"), RA_VALUE_TYPE_LONG},
00106 
00107         {RA_INFO_OBJ_PERSON_HEIGHT_L, "person_height", gettext_noop("Height"),
00108          gettext_noop("height of the person measured in cm"), RA_VALUE_TYPE_LONG},
00109 
00110         {RA_INFO_OBJ_PERSON_WEIGHT_L, "person_weight", gettext_noop("Weight"),
00111          gettext_noop("weight of the person measured in kg"), RA_VALUE_TYPE_LONG},
00112 
00113         {RA_INFO_OBJ_PERSON_STREET_C, "person_street", gettext_noop("street"),
00114          "", RA_VALUE_TYPE_CHAR},
00115 
00116         {RA_INFO_OBJ_PERSON_CITY_C, "person_city", gettext_noop("city"),
00117          "", RA_VALUE_TYPE_CHAR},
00118 
00119         {RA_INFO_OBJ_PERSON_POSTALCODE_C, "person_postalcode", gettext_noop("postal code"),
00120          "", RA_VALUE_TYPE_CHAR},
00121 
00122         {RA_INFO_OBJ_PERSON_COUNTRY_C, "person_country", gettext_noop("country"),
00123          "", RA_VALUE_TYPE_CHAR},
00124 
00125         {RA_INFO_OBJ_PERSON_ADDRESS_C, "person_address", gettext_noop("address"),
00126          "", RA_VALUE_TYPE_CHAR},
00127 
00128         {RA_INFO_OBJ_PERSON_PHONE1_C, "person_phone1", gettext_noop("phone1"),
00129          "", RA_VALUE_TYPE_CHAR},
00130 
00131         {RA_INFO_OBJ_PERSON_PHONE2_C, "person_phone2", gettext_noop("phone2"),
00132          "", RA_VALUE_TYPE_CHAR},
00133 
00134         {RA_INFO_OBJ_PERSON_PHONE_MOBILE_C, "person_phone_mobile", gettext_noop("mobile_phone"),
00135          "", RA_VALUE_TYPE_CHAR},
00136 
00137         {RA_INFO_OBJ_PERSON_FAX_C, "person_fax", gettext_noop("fax"),
00138          "", RA_VALUE_TYPE_CHAR},
00139 
00140         {RA_INFO_OBJ_PERSON_EMAIL_C, "person_email", gettext_noop("email"),
00141          "", RA_VALUE_TYPE_CHAR},
00142 
00143         {RA_INFO_OBJ_PERSON_WEBSITE_C, "person_website", gettext_noop("website"),
00144          "", RA_VALUE_TYPE_CHAR},
00145 
00146         {RA_INFO_OBJ_PERSON_COMMENT_C, "person_comment", gettext_noop("comment"),
00147          "", RA_VALUE_TYPE_CHAR},
00148 
00149 
00150         {RA_INFO_OBJ_PATIENT_ID_C, "patient_id", gettext_noop("ID"),
00151          gettext_noop("Patient-ID"), RA_VALUE_TYPE_CHAR},
00152 
00153         {RA_INFO_OBJ_PATIENT_REASON_C, "patient_reason", gettext_noop("reason"),
00154          "", RA_VALUE_TYPE_CHAR},
00155 
00156         {RA_INFO_OBJ_PATIENT_DIAGNOSIS_C, "patient_diagnosis", gettext_noop("diagnosis"),
00157          "", RA_VALUE_TYPE_CHAR},
00158 
00159         {RA_INFO_OBJ_PATIENT_THERAPY_C, "patient_therapy", gettext_noop("therapy"),
00160          "", RA_VALUE_TYPE_CHAR},
00161 
00162         {RA_INFO_OBJ_PATIENT_MEDICATION_C, "patient_medication", gettext_noop("medication"),
00163          "", RA_VALUE_TYPE_CHAR},
00164 
00165         {RA_INFO_OBJ_PATIENT_HOSPITAL_C, "patient_hospital", gettext_noop("hospital"),
00166          "", RA_VALUE_TYPE_CHAR},
00167 
00168         {RA_INFO_OBJ_PATIENT_DEPARTMENT_C, "patient_department", gettext_noop("department"),
00169          "", RA_VALUE_TYPE_CHAR},
00170 
00171         {RA_INFO_OBJ_PATIENT_DOCTOR_C, "patient_doctor", gettext_noop("doctor"),
00172          "", RA_VALUE_TYPE_CHAR},
00173 
00174         {RA_INFO_OBJ_PATIENT_EXAMINER_C, "patient_examiner", gettext_noop("examiner"),
00175          "", RA_VALUE_TYPE_CHAR},
00176 
00177 
00178         {RA_INFO_OBJ_PREG_WOMAN_NUM_FETUS_L, "num_fetus", gettext_noop("number of fetus"),
00179          "", RA_VALUE_TYPE_LONG},
00180 
00181         {RA_INFO_OBJ_PREG_WOMAN_GESTATION_DATE_C, "gestation_date", gettext_noop("gestation date"),
00182          "", RA_VALUE_TYPE_CHAR},
00183 
00184 
00185         {RA_INFO_REC_GEN_TYPE_L, "rec_type", gettext_noop("rec.type"),
00186          "", RA_VALUE_TYPE_LONG},
00187 
00188         {RA_INFO_REC_GEN_NAME_C, "rec_name", gettext_noop("name"),
00189          "", RA_VALUE_TYPE_CHAR},
00190 
00191         {RA_INFO_REC_GEN_DESC_C, "rec_desc", gettext_noop("description"),
00192          "", RA_VALUE_TYPE_CHAR},
00193 
00194         {RA_INFO_REC_GEN_COMMENT_C, "rec_comment", gettext_noop("comment"),
00195          "", RA_VALUE_TYPE_CHAR},
00196 
00197         {RA_INFO_REC_GEN_TIME_C, "rec_time", gettext_noop("rec.time"),
00198          "", RA_VALUE_TYPE_CHAR},
00199 
00200         {RA_INFO_REC_GEN_DATE_C, "rec_date", gettext_noop("rec.date"),
00201          "", RA_VALUE_TYPE_CHAR},
00202 
00203         {RA_INFO_REC_GEN_DURATION_SEC_D, "rec_duration_sec", gettext_noop("rec.duration[sec]"),
00204          "", RA_VALUE_TYPE_DOUBLE},
00205 
00206         {RA_INFO_REC_GEN_NUMBER_L, "rec_number", gettext_noop("rec.number"),
00207          "", RA_VALUE_TYPE_LONG},
00208 
00209         {RA_INFO_REC_GEN_NUM_SUB_REC_L, "rec_num_sub_rec", gettext_noop("#sub-rec's"),
00210          "", RA_VALUE_TYPE_LONG},
00211 
00212         {RA_INFO_REC_GEN_NUM_DEVICES_L, "rec_num_devices", gettext_noop("#device's"),
00213          "", RA_VALUE_TYPE_LONG},
00214 
00215         {RA_INFO_REC_GEN_NUM_CHANNEL_L, "rec_num_channel", gettext_noop("#channels"),
00216          "", RA_VALUE_TYPE_LONG},
00217 
00218         {RA_INFO_REC_GEN_OFFSET_L, "rec_offset", gettext_noop("offset[msec]"),
00219          "", RA_VALUE_TYPE_LONG},
00220 
00221         {RA_INFO_REC_GEN_PATH_C, "rec_path", gettext_noop("full path"),
00222          gettext_noop("full path of recording incl. recording name"), RA_VALUE_TYPE_CHAR},
00223 
00224         {RA_INFO_REC_GEN_DIR_L, "rec_is_directory", gettext_noop("rec. in dir"),
00225          gettext_noop("flag if recording is saved in directory"), RA_VALUE_TYPE_LONG},
00226 
00227         {RA_INFO_REC_GEN_MM_SEC_D, "rec_mm_per_sec", gettext_noop("mm/sec"),
00228          gettext_noop("mm per second (hint for displaing signal)"), RA_VALUE_TYPE_DOUBLE},
00229 
00230 
00231         {RA_INFO_REC_DEV_HW_NAME_C, "dev_hw_name", gettext_noop("dev-hw-name"),
00232          "", RA_VALUE_TYPE_CHAR},
00233 
00234         {RA_INFO_REC_DEV_HW_MANUFACTURER_C, "dev_hw_manufacturer", gettext_noop("dev-hw-manufacturer"),
00235          "", RA_VALUE_TYPE_CHAR},
00236 
00237         {RA_INFO_REC_DEV_HW_SERIAL_NO_C, "dev_hw_serial_no", gettext_noop("dev-hw-serial#"),
00238          "", RA_VALUE_TYPE_CHAR},
00239 
00240         {RA_INFO_REC_DEV_HW_VERSION_C, "dev_hw_version", gettext_noop("dev-hw-version"),
00241          "", RA_VALUE_TYPE_CHAR},
00242 
00243         {RA_INFO_REC_DEV_SW_NAME_C, "dev_sw_name", gettext_noop("dev-sw-name"),
00244          "", RA_VALUE_TYPE_CHAR},
00245 
00246         {RA_INFO_REC_DEV_SW_MANUFACTURER_C, "dev_sw_manufacturer", gettext_noop("dev-sw-manufacturer"),
00247          "", RA_VALUE_TYPE_CHAR},
00248 
00249         {RA_INFO_REC_DEV_SW_SERIAL_NO_C, "dev_sw_serial_no", gettext_noop("dev-sw-serial#"),
00250          "", RA_VALUE_TYPE_CHAR},
00251 
00252         {RA_INFO_REC_DEV_SW_VERSION_C, "dev_sw_version", gettext_noop("dev-sw-version"),
00253          "", RA_VALUE_TYPE_CHAR},
00254 
00255 
00256         {RA_INFO_REC_CH_NAME_C, "ch_name", gettext_noop("ch-name"),
00257          "", RA_VALUE_TYPE_CHAR},
00258 
00259         {RA_INFO_REC_CH_DESC_C, "ch_desc", gettext_noop("ch-desc"),
00260          "", RA_VALUE_TYPE_CHAR},
00261 
00262         {RA_INFO_REC_CH_NUM_SAMPLES_L, "ch_num_samples", gettext_noop("ch-#samples"),
00263          "", RA_VALUE_TYPE_LONG},
00264 
00265         {RA_INFO_REC_CH_SAMPLERATE_D, "ch_samplerate", gettext_noop("ch-samplerate"),
00266          "", RA_VALUE_TYPE_DOUBLE},
00267 
00268         {RA_INFO_REC_CH_NUM_BITS_L, "ch_num_bits", gettext_noop("ch-#bits"),
00269          "", RA_VALUE_TYPE_LONG},
00270 
00271         {RA_INFO_REC_CH_AMP_RESOLUTION_D, "ch_amp_res", gettext_noop("ch-resolution"),
00272          "", RA_VALUE_TYPE_DOUBLE},
00273 
00274         {RA_INFO_REC_CH_SAMPLE_TYPE_L, "ch_sample_type", gettext_noop("ch-sample-type"),
00275          gettext_noop("storage type of the sample values (e.g. integer, real)"), RA_VALUE_TYPE_LONG},
00276 
00277         {RA_INFO_REC_CH_UNIT_C, "ch_unit", gettext_noop("ch-unit"),
00278          "", RA_VALUE_TYPE_CHAR},
00279 
00280         {RA_INFO_REC_CH_CENTER_VALUE_D, "ch_center_value", gettext_noop("center value"),
00281          gettext_noop("value[unit] signal is centered"), RA_VALUE_TYPE_DOUBLE},
00282 
00283         {RA_INFO_REC_CH_CENTER_SAMPLE_D, "ch_center_sample", gettext_noop("center sample"),
00284          gettext_noop("center value as sample-value"), RA_VALUE_TYPE_DOUBLE},
00285 
00286         {RA_INFO_REC_CH_MIN_UNIT_D, "ch_min_unit", gettext_noop("min.value"),
00287          gettext_noop("minimum value in units"), RA_VALUE_TYPE_DOUBLE},
00288 
00289         {RA_INFO_REC_CH_MAX_UNIT_D, "ch_max_unit", gettext_noop("max.value"),
00290          gettext_noop("maximum value in units"), RA_VALUE_TYPE_DOUBLE},
00291 
00292         {RA_INFO_REC_CH_MM_UNIT_D, "ch_mm_per_unit", gettext_noop("mm/unit"),
00293          gettext_noop("mm per unit (hint for displaing signal)"), RA_VALUE_TYPE_DOUBLE},
00294 
00295         {RA_INFO_REC_CH_TYPE_L, "ch_type", gettext_noop("type"),
00296          gettext_noop("type of channel (e.g. ecg, eeg)"), RA_VALUE_TYPE_LONG},
00297 
00298         {RA_INFO_REC_CH_DO_IGNORE_VALUE_L, "do_ignore_value", gettext_noop("do-ignore-value"),
00299          gettext_noop("flag if some values of the channel should be ignored"), RA_VALUE_TYPE_LONG},
00300 
00301         {RA_INFO_REC_CH_IGNORE_VALUE_D, "ignore_value", gettext_noop("ignore-value"),
00302          gettext_noop("value which should be ignored"), RA_VALUE_TYPE_DOUBLE},
00303 
00304 
00305         {RA_INFO_EVAL_NAME_C, "eval_name", gettext_noop("eval-name"),
00306          gettext_noop("name of the evaluation"), RA_VALUE_TYPE_CHAR},
00307 
00308         {RA_INFO_EVAL_DESC_C, "eval_desc", gettext_noop("eval-description"),
00309          gettext_noop("description of the evaluation"), RA_VALUE_TYPE_CHAR},
00310 
00311         {RA_INFO_EVAL_ADD_TS_C, "eval_add_timestamp", gettext_noop("eval add ts"),
00312          gettext_noop("timestamp when eval was added"), RA_VALUE_TYPE_CHAR},
00313 
00314         {RA_INFO_EVAL_MODIFY_TS_C, "eval_modify_timestamp", gettext_noop("eval modify ts"),
00315          gettext_noop("timestamp when eval was last modified"), RA_VALUE_TYPE_CHAR},
00316 
00317         {RA_INFO_EVAL_USER_C, "eval_user", gettext_noop("user"),
00318          gettext_noop("user who added eval"), RA_VALUE_TYPE_CHAR},
00319 
00320         {RA_INFO_EVAL_HOST_C, "eval_host", gettext_noop("host"),
00321          gettext_noop("machine on which eval was added"), RA_VALUE_TYPE_CHAR},
00322 
00323         {RA_INFO_EVAL_PROG_C, "eval_program", gettext_noop("program"),
00324          gettext_noop("program which added eval"), RA_VALUE_TYPE_CHAR},
00325 
00326         {RA_INFO_EVAL_ORIGINAL_L, "eval_is_original", gettext_noop("original-eval"),
00327          gettext_noop("evaluation done in recording system"), RA_VALUE_TYPE_LONG},
00328 
00329         {RA_INFO_EVAL_DEFAULT_L, "eval_is_default", gettext_noop("default-eval"),
00330          gettext_noop("evaluation which should be used"), RA_VALUE_TYPE_LONG},
00331 
00332 
00333         {RA_INFO_CLASS_ASCII_ID_C, "class_id_ascii", gettext_noop("class-id-ascii"),
00334          gettext_noop("id-string of the event class"), RA_VALUE_TYPE_CHAR},
00335 
00336         {RA_INFO_CLASS_NAME_C, "class_name", gettext_noop("class-name"),
00337          gettext_noop("name of the event class"), RA_VALUE_TYPE_CHAR},
00338 
00339         {RA_INFO_CLASS_DESC_C, "class_desc", gettext_noop("class-descritpion"),
00340          gettext_noop("description of the event class"), RA_VALUE_TYPE_CHAR},
00341 
00342         {RA_INFO_CLASS_EV_NUM_L, "class_num_events", gettext_noop("#events"),
00343          gettext_noop("number of events"), RA_VALUE_TYPE_LONG},
00344 
00345 
00346         {RA_INFO_PROP_ASCII_ID_C, "prop_id_ascii", gettext_noop("prop-id-ascii"),
00347          gettext_noop("id-string of event property"), RA_VALUE_TYPE_CHAR},
00348 
00349         {RA_INFO_PROP_VALTYPE_L, "prop_value_type", gettext_noop("prop-value type"),
00350          gettext_noop("type of the event-property values"), RA_VALUE_TYPE_LONG},
00351 
00352         {RA_INFO_PROP_NAME_C, "prop_name", gettext_noop("prop-name"),
00353          gettext_noop("name of event property"), RA_VALUE_TYPE_CHAR},
00354 
00355         {RA_INFO_PROP_DESC_C, "prop_desc", gettext_noop("prop-desc"),
00356          gettext_noop("description of event property"), RA_VALUE_TYPE_CHAR},
00357 
00358         {RA_INFO_PROP_UNIT_C, "prop_unit", gettext_noop("unit"),
00359          "", RA_VALUE_TYPE_CHAR},
00360 
00361         {RA_INFO_PROP_HAS_MINMAX_L, "prop_has_minmax", gettext_noop("have min/max-values"),
00362          "", RA_VALUE_TYPE_LONG},
00363 
00364         {RA_INFO_PROP_MIN_D, "prop_min", gettext_noop("min-value"),
00365          "", RA_VALUE_TYPE_DOUBLE},
00366 
00367         {RA_INFO_PROP_MAX_D, "prop_max", gettext_noop("max-value"),
00368          "", RA_VALUE_TYPE_DOUBLE},
00369 
00370 
00371         {RA_INFO_SUM_ASCII_ID_C, "sum_id_ascii", gettext_noop("summary-id-ascii"),
00372          gettext_noop("id-string of event summary"), RA_VALUE_TYPE_CHAR},
00373 
00374         {RA_INFO_SUM_NAME_C, "sum_name", gettext_noop("summary name"),
00375          gettext_noop("name of the event summary"), RA_VALUE_TYPE_CHAR},
00376 
00377         {RA_INFO_SUM_DESC_C, "sum_desc", gettext_noop("summary descritption"),
00378          gettext_noop("description of the event summary"), RA_VALUE_TYPE_CHAR},
00379 
00380         {RA_INFO_SUM_NUM_CH_L, "sum_num_ch", gettext_noop("#summary channels"),
00381          gettext_noop("number of channels where summary where got"), RA_VALUE_TYPE_LONG},
00382 
00383         {RA_INFO_SUM_CH_NUM_L, "sum_ch_num", gettext_noop("ch-number"),
00384          gettext_noop("channel-number used"), RA_VALUE_TYPE_LONG},
00385 
00386         {RA_INFO_SUM_CH_FIDUCIAL_L, "sum_ch_fiducial", gettext_noop("fiducial offset"),
00387          gettext_noop("offset of fiducial point (-1 if none)"), RA_VALUE_TYPE_LONG},
00388 
00389         {RA_INFO_SUM_CH_NUM_DIM_L,      "sum_num_dim", gettext_noop("#dimensions"),
00390          gettext_noop("number of dimensions used for the summary"), RA_VALUE_TYPE_LONG},
00391 
00392         {RA_INFO_SUM_CH_DIM_UNIT_CA, "sum_dim_unit", gettext_noop("dimension unit"),
00393          gettext_noop("unit of the dimension"), RA_VALUE_TYPE_CHAR_ARRAY},
00394 
00395         {RA_INFO_SUM_CH_DIM_NAME_CA, "sum_dim_name", gettext_noop("dimension name"),
00396          gettext_noop("name of the dimension"), RA_VALUE_TYPE_CHAR_ARRAY},
00397 
00398 
00399         {RA_INFO_PL_NAME_C, "pl_name", gettext_noop("plugin name"),
00400          "", RA_VALUE_TYPE_CHAR},
00401 
00402         {RA_INFO_PL_DESC_C, "pl_desc", gettext_noop("plugin description"),
00403          "", RA_VALUE_TYPE_CHAR},
00404 
00405         {RA_INFO_PL_FILE_C, "pl_file", gettext_noop("plugin filename"),
00406          "", RA_VALUE_TYPE_CHAR},
00407 
00408         {RA_INFO_PL_USE_IT_L, "pl_use_it", gettext_noop("use plugin"),
00409          "", RA_VALUE_TYPE_LONG},
00410 
00411         {RA_INFO_PL_TYPE_L, "pl_type", gettext_noop("plugin type"),
00412          "", RA_VALUE_TYPE_LONG},
00413 
00414         {RA_INFO_PL_VERSION_C, "pl_version", gettext_noop("plugin version"),
00415          "", RA_VALUE_TYPE_CHAR},
00416 
00417         {RA_INFO_PL_BUILD_TS_C, "pl_build_ts", gettext_noop("plugin build-timestamp"),
00418          "", RA_VALUE_TYPE_CHAR},
00419 
00420         {RA_INFO_PL_LICENSE_L, "pl_license", gettext_noop("plugin license"),
00421          "", RA_VALUE_TYPE_LONG},
00422 
00423 
00424         {RA_INFO_PL_NUM_OPTIONS_L, "pl_num_opt", gettext_noop("#options"),
00425          gettext_noop("number of options available in the plugin"), RA_VALUE_TYPE_LONG},
00426 
00427         {RA_INFO_PL_OPT_NAME_C, "pl_opt_name", gettext_noop("opt-name"),
00428          gettext_noop("a short name of the option"), RA_VALUE_TYPE_CHAR},
00429 
00430         {RA_INFO_PL_OPT_DESC_C, "pl_opt_desc", gettext_noop("opt-desc"),
00431          gettext_noop("a description of the option"), RA_VALUE_TYPE_CHAR},
00432 
00433         {RA_INFO_PL_OPT_TYPE_L, "pl_opt_type", gettext_noop("opt-type"),
00434          gettext_noop("type of the option (eg. long, double, char)"), RA_VALUE_TYPE_LONG},
00435 
00436 
00437         {RA_INFO_PL_NUM_RESULTS_L, "pl_num_results", gettext_noop("#results"),
00438          gettext_noop("number of results in the plugin"), RA_VALUE_TYPE_LONG},
00439 
00440         {RA_INFO_PL_RES_NAME_C, "res_name", gettext_noop("res-name"),
00441          gettext_noop("a short name of the result"), RA_VALUE_TYPE_CHAR},
00442 
00443         {RA_INFO_PL_RES_DESC_C, "res_desc", gettext_noop("res-desc"),
00444          gettext_noop("a description of the result"), RA_VALUE_TYPE_CHAR},
00445 
00446         {RA_INFO_PL_RES_TYPE_L, "res_type", gettext_noop("res-type"),
00447          gettext_noop("type of the result (eg. long, double, char)"), RA_VALUE_TYPE_LONG},
00448 
00449         {RA_INFO_PL_RES_DEFAULT_L, "res_default", gettext_noop("res-default"),
00450          gettext_noop("flag if the result belongs to the default results"), RA_VALUE_TYPE_LONG},
00451 
00452 
00453         {RA_INFO_SES_NAME_C, "session_name", gettext_noop("session-name"),
00454          gettext_noop("name of the session"), RA_VALUE_TYPE_CHAR},
00455 
00456         {RA_INFO_SES_DESC_C, "session_desc", gettext_noop("session-desc"),
00457          gettext_noop("a description of the session"), RA_VALUE_TYPE_CHAR},
00458 
00459 
00460         {RA_INFO_PROC_NUM_RES_SETS_L, "proc_num_res_sets", gettext_noop("#result sets"),
00461          gettext_noop("number of available result sets"), RA_VALUE_TYPE_LONG},
00462 
00463         {RA_INFO_PROC_NUM_RES_L, "proc_num_res", gettext_noop("#results"),
00464          gettext_noop("number of available results per set"), RA_VALUE_TYPE_LONG},
00465 };  /* struct meta_info _meta[] */
00466 #endif /* _DEFINE_INFO_STRUCTS */
00467 
00468 
00469 /* If memory is shared between modules (plugins) use this functions. Under
00470    Windows it seems, that malloc use the DLL stack and other DLL's can't access
00471    this memory (I thought that DLL's use the same address space as the "parent"
00472    process, but it seems I'm wrong; under Linux it works as expected :-) ) */
00473 #ifdef WIN32
00474 #include <windows.h>
00475 #define ra_alloc_mem(x)  GlobalAlloc(GMEM_FIXED, x)
00476 #define ra_free_mem(x)   GlobalFree(x)
00477 #else
00478 #define ra_alloc_mem(x)  malloc(x)
00479 #define ra_free_mem(x)   free(x)
00480 #endif
00481 
00482 
00483 /* get info about minfo */
00484 struct meta_info *get_meta_info(int id);
00485 int find_ra_info_by_name(value_handle vh, const char *c);
00486 int get_ra_info_id_ascii_by_id(long id, char *id_ascii);
00487 
00488 /* some helper functions needed in modules */
00489 void split_filename(const char *file, char sep, char *dir, char *name, char *ext);
00490 void set_one_session(struct ra_meas *meas, const char *name, const char *desc);
00491 void free_session_rec(struct ra_rec *rh);
00492 int fill_predef_class_info(long id, value_handle vh_id, value_handle vh_name, value_handle vh_desc);
00493 int fill_predef_class_info_ascii(const char *ascii_id, value_handle vh_name, value_handle vh_desc);
00494 long get_class_id(const char *ascii_id);
00495 int fill_predef_prop_info(int prop, value_handle vh_id, value_handle vh_type, value_handle vh_len,
00496                           value_handle vh_name, value_handle vh_desc,  value_handle vh_unit, value_handle vh_use_minmax,
00497                           value_handle vh_min, value_handle vh_max);
00498 int fill_predef_prop_info_ascii(const char *ascii_id, value_handle vh_type, value_handle vh_len,
00499                                 value_handle vh_name, value_handle vh_desc,  value_handle vh_unit,
00500                                 value_handle vh_use_minmax, value_handle vh_min, value_handle vh_max);
00501 long get_prop_id(const char *ascii_id);
00502 
00503 #ifdef __cplusplus
00504 }
00505 #endif
00506 
00507 #endif /* PL_GENERAL_H */

Generated on Fri May 27 11:32:38 2005 for libRASCH by  doxygen 1.4.2