MNE-CPP  0.1.9
A Framework for Electrophysiology
mne_raw_buf_def.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef MNERAWBUFDEF_H
38 #define MNERAWBUFDEF_H
39 
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "../mne_global.h"
45 
46 #include <fiff/fiff_dir_node.h>
47 
48 //=============================================================================================================
49 // EIGEN INCLUDES
50 //=============================================================================================================
51 
52 #include <Eigen/Core>
53 
54 //=============================================================================================================
55 // QT INCLUDES
56 //=============================================================================================================
57 
58 #include <QSharedPointer>
59 #include <QList>
60 
61 //=============================================================================================================
62 // DEFINE NAMESPACE MNELIB
63 //=============================================================================================================
64 
65 namespace MNELIB
66 {
67 
68 //=============================================================================================================
69 // FORWARD DECLARATIONS
70 //=============================================================================================================
71 
72 //=============================================================================================================
79 {
80 public:
81  typedef QSharedPointer<MneRawBufDef> SPtr;
82  typedef QSharedPointer<const MneRawBufDef> ConstSPtr;
84  //=========================================================================================================
89  MneRawBufDef();
90 
91  //=========================================================================================================
96  ~MneRawBufDef();
97 
98  static void free_bufs(MneRawBufDef* bufs, int nbuf);
99 
100 public:
101  FIFFLIB::FiffDirEntry::SPtr ent; /* Where is this in the file (file bufs only, pointer to info) */
102  int firsts,lasts; /* First and last sample */
103  int ntaper; /* For filtered buffers: taper length */
104  int ns; /* Number of samples (last - first + 1) */
105  int nchan; /* Number of channels */
106  int is_skip; /* Is this a skip? */
107  float **vals; /* Values (null if not in memory) */
108  int valid; /* Are the data meaningful? */
109  int *ch_filtered; /* For filtered buffers: has this channel filtered already */
110  int comp_status; /* For raw buffers: compensation status */
111 
113 //typedef struct {
114 // FIFFLIB::FiffDirEntry::SPtr ent; /* Where is this in the file (file bufs only, pointer to info) */
115 // int firsts,lasts; /* First and last sample */
116 // int ntaper; /* For filtered buffers: taper length */
117 // int ns; /* Number of samples (last - first + 1) */
118 // int nchan; /* Number of channels */
119 // int is_skip; /* Is this a skip? */
120 // float **vals; /* Values (null if not in memory) */
121 // int valid; /* Are the data meaningful? */
122 // int *ch_filtered; /* For filtered buffers: has this channel filtered already */
123 // int comp_status; /* For raw buffers: compensation status */
124 //} *mneRawBufDef,mneRawBufDefRec;
125 };
126 
127 //=============================================================================================================
128 // INLINE DEFINITIONS
129 //=============================================================================================================
130 } // NAMESPACE MNELIB
131 
132 #endif // MNERAWBUFDEF_H
QSharedPointer< const MneRawBufDef > ConstSPtr
QSharedPointer< FiffDirEntry > SPtr
QSharedPointer< MneRawBufDef > SPtr
Information about raw data in fiff file.
FiffDirNode class declaration, which provides fiff dir tree processing methods.
#define MNESHARED_EXPORT
Definition: mne_global.h:56