v2.0.0
Loading...
Searching...
No Matches
fiff_file_sharer.h File Reference

Hands finished FIFF recordings from one application to another through a watched directory. More...

#include "fiff_io.h"
#include <QFileSystemWatcher>
Include dependency graph for fiff_file_sharer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FIFFLIB::FiffFileSharer
 Copies FIFF recordings into a shared directory and signals their arrival to a watching consumer. More...

Namespaces

namespace  FIFFLIB
 FIFF file I/O, in-memory data structures and high-level readers/writers.

Detailed Description

Hands finished FIFF recordings from one application to another through a watched directory.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

The producer (e.g. MNE Scan's file writer) calls FIFFLIB::FiffFileSharer::copyRealtimeFile, which copies a recording into the shared directory as realtime_file<N>_raw.fif and closes its raw block so it is a complete FIFF file. The consumer (e.g. MNE Analyze) calls FIFFLIB::FiffFileSharer::initWatcher and receives newFileAtPath once the next file has been written.

Definition in file fiff_file_sharer.h.