v2.0.0
Loading...
Searching...
No Matches
fiff_dir_entry.h
Go to the documentation of this file.
1//=============================================================================================================
28
29#ifndef FIFF_DIR_ENTRY_H
30#define FIFF_DIR_ENTRY_H
31
32//=============================================================================================================
33// INCLUDES
34//=============================================================================================================
35
36#include "fiff_global.h"
37#include "fiff_types.h"
38
39//=============================================================================================================
40// QT INCLUDES
41//=============================================================================================================
42
43#include <QSharedPointer>
44#include <memory>
45
46//=============================================================================================================
47// DEFINE NAMESPACE FIFFLIB
48//=============================================================================================================
49
50namespace FIFFLIB
51{
52
53//=============================================================================================================
62
64{
65public:
66 using SPtr = QSharedPointer<FiffDirEntry>;
67 using ConstSPtr = QSharedPointer<const FiffDirEntry>;
68 using UPtr = std::unique_ptr<FiffDirEntry>;
69 using ConstUPtr = std::unique_ptr<const FiffDirEntry>;
70
71 //=========================================================================================================
76
77 //=========================================================================================================
83 FiffDirEntry(const FiffDirEntry& p_FiffDirEntry);
84
85 //=========================================================================================================
90
91 //=========================================================================================================
97 inline static qint32 storageSize();
98
99public:
100 fiff_int_t kind;
101 fiff_int_t type;
102 fiff_int_t size;
103 fiff_int_t pos;
104
105};
106
107//=============================================================================================================
108// INLINE DEFINITIONS
109//=============================================================================================================
110
112{
113 return sizeof(FiffDirEntry::kind) + sizeof(FiffDirEntry::type)
114 + sizeof(FiffDirEntry::size) + sizeof(FiffDirEntry::pos);
115}
116} // NAMESPACE
117
118#endif // FIFF_DIR_ENTRY_H
Export/import macros and build-info accessors for the FIFFLIB shared library.
#define FIFFSHARED_EXPORT
Definition fiff_global.h:44
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
FIFF file I/O, in-memory data structures and high-level readers/writers.
static qint32 storageSize()
QSharedPointer< FiffDirEntry > SPtr
std::unique_ptr< const FiffDirEntry > ConstUPtr
std::unique_ptr< FiffDirEntry > UPtr
QSharedPointer< const FiffDirEntry > ConstSPtr