Refcounted memory-mapped view of a FIFF file shared between cooperating consumers. More...
#include <fiff_file_sharer.h>
Signals | |
| void | newFileAtPath (const QString &sPath) |
Public Member Functions | |
| FiffFileSharer () | |
| FiffFileSharer (const QString &sDirName) | |
| void | copyRealtimeFile (const QString &sSourcePath) |
| void | initWatcher () |
Refcounted memory-mapped view of a FIFF file shared between cooperating consumers.
Each consumer gets a zero-copy QByteArray view of the same backing pages. When the last reference goes away the mapping is unmapped. Used to let the GUI, the realtime pipeline and the recording dumper share one open FIFF file without duplicate I/O.
Definition at line 51 of file fiff_file_sharer.h.

| FiffFileSharer::FiffFileSharer | ( | ) |
Constructs a FiffFileSharer with default paramaters (based on m_sDefaultDirectory and m_sDefaultFileName)
Definition at line 46 of file fiff_file_sharer.cpp.
| FiffFileSharer::FiffFileSharer | ( | const QString & | sDirName | ) |
Constructs a FiffFileSharer to watch/save to sDirName
| [in] | sDirName | Directory to/from which data will saved/read |
Definition at line 53 of file fiff_file_sharer.cpp.
| void FiffFileSharer::copyRealtimeFile | ( | const QString & | sSourcePath | ) |
Copies unfinished fiff file to set directory and appends relevant end tags to copy
| [in] | sSourcePath | source file to ber copied |
Definition at line 61 of file fiff_file_sharer.cpp.
| void FiffFileSharer::initWatcher | ( | ) |
Sets member QFileSystemWatcher to watch set directory
Definition at line 81 of file fiff_file_sharer.cpp.
|
signal |
Emits path of new shared fiff file.
| [in] | sPath | Path of new shared fiff file. |