MNE-CPP  beta 1.0
ioutils.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef IOUTILS_H
37 #define IOUTILS_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "utils_global.h"
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // QT INCLUDES
50 //=============================================================================================================
51 
52 #include <QSharedPointer>
53 
54 
55 //*************************************************************************************************************
56 //=============================================================================================================
57 // QT INCLUDES
58 //=============================================================================================================
59 
60 #include <Eigen/Core>
61 
62 
63 //*************************************************************************************************************
64 //=============================================================================================================
65 // DEFINE NAMESPACE FSLIB
66 //=============================================================================================================
67 
68 namespace UTILSLIB
69 {
70 
71 //*************************************************************************************************************
72 //=============================================================================================================
73 // USED NAMESPACES
74 //=============================================================================================================
75 
76 using namespace Eigen;
77 
78 
79 //*************************************************************************************************************
80 //=============================================================================================================
81 // FORWARD DECLARATIONS
82 //=============================================================================================================
83 
84 
85 //=============================================================================================================
92 {
93 public:
94  typedef QSharedPointer<IOUtils> SPtr;
95  typedef QSharedPointer<const IOUtils> ConstSPtr;
97  //=========================================================================================================
101  ~IOUtils(){};
102 
103  //=========================================================================================================
113  static qint32 fread3(QDataStream &p_qStream);
114 
115  //=========================================================================================================
126  static VectorXi fread3_many(QDataStream &p_qStream, qint32 count);
127 
128  //=========================================================================================================
136  static qint16 swap_short (qint16 source);
137 
138  //=========================================================================================================
146  static qint32 swap_int (qint32 source);
147 
148  //=========================================================================================================
156  static void swap_intp (qint32 *source);
157 
158  //=========================================================================================================
166  static qint64 swap_long (qint64 source);
167 
168  //=========================================================================================================
176  static void swap_longp (qint64 *source);
177 
178  //=========================================================================================================
186  static void swap_floatp (float *source);
187 
188  //=========================================================================================================
196  static void swap_doublep(double *source);
197 };
198 
199 //*************************************************************************************************************
200 //=============================================================================================================
201 // INLINE DEFINITIONS
202 //=============================================================================================================
203 
204 
205 } // NAMESPACE
206 
207 #endif // IOUTILS_H
208 
#define UTILSSHARED_EXPORT
Definition: utils_global.h:57
utils library export/import macros.
IO utilitie routines.
Definition: ioutils.h:91
QSharedPointer< const IOUtils > ConstSPtr
Definition: ioutils.h:95
QSharedPointer< IOUtils > SPtr
Definition: ioutils.h:94