v2.0.0
Loading...
Searching...
No Matches
FIFFLIB::FiffFileSharer Class Reference

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 ()

Detailed Description

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.

Inheritance diagram for FIFFLIB::FiffFileSharer:
Inheritance graph

Constructor & Destructor Documentation

◆ FiffFileSharer() [1/2]

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() [2/2]

FiffFileSharer::FiffFileSharer ( const QString & sDirName)

Constructs a FiffFileSharer to watch/save to sDirName

Parameters
[in]sDirNameDirectory to/from which data will saved/read

Definition at line 53 of file fiff_file_sharer.cpp.

Member Function Documentation

◆ copyRealtimeFile()

void FiffFileSharer::copyRealtimeFile ( const QString & sSourcePath)

Copies unfinished fiff file to set directory and appends relevant end tags to copy

Parameters
[in]sSourcePathsource file to ber copied

Definition at line 61 of file fiff_file_sharer.cpp.

◆ initWatcher()

void FiffFileSharer::initWatcher ( )

Sets member QFileSystemWatcher to watch set directory

Definition at line 81 of file fiff_file_sharer.cpp.

◆ newFileAtPath

void FIFFLIB::FiffFileSharer::newFileAtPath ( const QString & sPath)
signal

Emits path of new shared fiff file.

Parameters
[in]sPathPath of new shared fiff file.

The documentation for this class was generated from the following files: