• API Main Page
  • Documentation
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

src/io.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2010 by Matthias Ihrke                                  *
00003  *   ihrke@nld.ds.mpg.de
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   aint with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
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 /* include "special" IO-headers */
00042 #include "io_matlab.h"
00043 #include "io_wav.h"
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048 
00049   /* ------------- READER --------------------- */
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   /* ------------- WRITER --------------------- */
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 /* IO_H */

Generated on Fri Jun 25 2010 14:10:19 for libeegtools by  doxygen 1.7.0