FiffFileSharer
Namespace: FIFFLIB · Library: FIFF Library
#include <fiff/fiff_file_sharer.h>
class FIFFLIB::FiffFileSharer
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.
Inheritance
Public Methods
FiffFileSharer()
Constructs a FiffFileSharer with default paramaters (based on m_sDefaultDirectory and m_sDefaultFileName).
FiffFileSharer(sDirName)
Constructs a FiffFileSharer to watch/save to sDirName.
Parameters:
- sDirName : const QString & Directory to/from which data will saved/read
copyRealtimeFile(sSourcePath)
Copies unfinished fiff file to set directory and appends relevant end tags to copy.
Parameters:
- sSourcePath : const QString & source file to ber copied
initWatcher()
Sets member QFileSystemWatcher to watch set directory.
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>