MNE-CPP  beta 1.0
fiff_dir_entry.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef FIFF_DIR_ENTRY_H
37 #define FIFF_DIR_ENTRY_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // FIFF INCLUDES
42 //=============================================================================================================
43 
44 #include "fiff_global.h"
45 #include "fiff_types.h"
46 
47 
48 //*************************************************************************************************************
49 //=============================================================================================================
50 // Qt INCLUDES
51 //=============================================================================================================
52 
53 #include <QSharedPointer>
54 
55 
56 //*************************************************************************************************************
57 //=============================================================================================================
58 // DEFINE NAMESPACE FIFFLIB
59 //=============================================================================================================
60 
61 namespace FIFFLIB
62 {
63 
64 //*************************************************************************************************************
65 //=============================================================================================================
66 // USED NAMESPACES
67 //=============================================================================================================
68 
69 
70 //=============================================================================================================
78 {
79 public:
80  typedef QSharedPointer<FiffDirEntry> SPtr;
81  typedef QSharedPointer<const FiffDirEntry> ConstSPtr;
83  //=========================================================================================================
87  FiffDirEntry();
88 
89  //=========================================================================================================
95  FiffDirEntry(const FiffDirEntry& p_FiffDirEntry);
96 
97  //=========================================================================================================
101  ~FiffDirEntry();
102 
103  //=========================================================================================================
109  inline static qint32 storageSize();
110 
111 public:
112  fiff_int_t kind;
113  fiff_int_t type;
114  fiff_int_t size;
115  fiff_int_t pos;
117 // ### OLD STRUCT ###
118 // /** Directories are composed of these structures. *
119 // typedef struct _fiffDirEntryRec {
120 // fiff_int_t kind; /**< Tag number *
121 // fiff_int_t type; /**< Data type *
122 // fiff_int_t size; /**< How many bytes *
123 // fiff_int_t pos; /**< Location in file
124 // * Note: the data is located at pos +
125 // * FIFFC_DATA_OFFSET *
126 // } fiffDirEntryRec,*fiffDirEntry;/**< Directory is composed of these *
127 // /** Alias for fiffDirEntryRec *
128 // typedef fiffDirEntryRec fiff_dir_entry_t;
129 };
130 
131 
132 //*************************************************************************************************************
133 //=============================================================================================================
134 // INLINE DEFINITIONS
135 //=============================================================================================================
136 
138 {
139  return 16;
140 }
141 
142 } // NAMESPACE
143 
144 #endif // FIFF_DIR_ENTRY_H
QSharedPointer< const FiffDirEntry > ConstSPtr
QSharedPointer< FiffDirEntry > SPtr
fiff_int_t kind
Directory entry description.
Old fiff_type declarations - replace them.
static qint32 storageSize()
fiff_int_t pos
fiff_int_t size
#define FIFFSHARED_EXPORT
Definition: fiff_global.h:58
Fiff library export/import macros.
Definition: fiff.h:98
fiff_int_t type