Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00032 #ifndef IO_H
00033 #define IO_H
00034
00035 #define MAX_LINE_LENGTH 500
00036
00037 #include "definitions.h"
00038 #include "eeg.h"
00039 #include "optarg.h"
00040
00041
00042 #include "io_matlab.h"
00043 #include "io_wav.h"
00044
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048
00049
00050 double** read_double_matrix_ascii(const char *fname, int xdim, int ydim, double **d);
00051 double* read_dblp_ascii( const char *fname, int N, double *v );
00052
00053 ChannelInfo* read_chaninfo_ced( const char *fname, ChannelInfo *chans );
00054
00055 Array* read_matrix_from_text( const char *fname );
00056
00057
00058 void write_dblpp_ascii(FILE *out, const double **d, int xdim, int ydim, OptArgList *opts);
00059 void write_dblpp_ascii_file(const char *fname, const double **d, int xdim, int ydim, OptArgList *opts);
00060 void write_dblp_ascii(FILE *out, const double *v, int n);
00061 void write_dblp_ascii_file(const char *fname, const double *v, int n);
00062
00063 void write_intp_ascii(FILE *out, const int *v, int n);
00064 void write_intp_ascii_file(const char *fname, const int *v, int n);
00065
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070
00071 #endif