CEBL  2.1
DataIO.hpp
Go to the documentation of this file.
1 /*
2 * CEBL : CSU EEG Brain-Computer Interface Lab
3 *
4 * Author: Jeshua Bratman - jeshuabratman@gmail.com
5 *
6 * This file is part of CEBL.
7 *
8 * CEBL is free software; you can redistribute it and/or modify it.
9 * We only ask that if you use our code that you cite the source in
10 * your project or publication.
11 *
12 * EEG Group (www.cs.colostate.edu/eeg)
13 * Department of Computer Science
14 * Colorado State University
15 *
16 */
17 
25 #ifndef DATAIO_HPP
26 #define DATAIO_HPP
27 
28 #include <vector>
29 using namespace std;
30 
31 #include <cppR/cppR.hpp>
32 #include "EEGTrainingData.hpp"
33 
34 
35 namespace DataIO
36 {
39  void saveTrainingDataToFile(const EEGTrainingData &, string filename);
40 
49  void saveTrainingSessionToFile(const EEGTrainingData &unfiltered_data,
50  string filename,
51  const EEGTrainingData &filtered_data,
52  int filter_lags,
53  std::vector<int> filter_removed_components,
54  ublas::matrix<double> filter_matrix);
55 
56 
63 
68  std::string createTempDir();
69 
73  void removeTempDir(std::string dir);
74 };
75 
76 #endif