CEBL  2.1
SessionManager.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 
24 #ifndef SESSIONMANAGER_H
25 #define SESSIONMANAGER_H
26 
27 #include "../CEBLIncludes.hpp"
28 
29 //forward declarations
30 class CEBLModel;
31 class Session;
32 
34 {
35 private:
36  Session *current_session;
37  CEBLModel *model;
38 
40  void updateModel();
42  void updateSession();
43 
44  string decodeKey(string);
45  string encodeKey(string);
46 
47 public:
50 
51 
52  void save();
53  void saveAs(string filename);
54  void load(string filename);
55 
56  bool shouldSaveAs();
57 
58 };
59 
60 #endif