FiffStream
Namespace: FIFFLIB · Library: FIFF Library
mne.io.fiff.FiffStream in MNE-Python.
#include <fiff/fiff_stream.h>
class FIFFLIB::FiffStream
FIFF tag-stream reader/writer: wraps a QIODevice and exposes typed read_* / write_* methods for every FIFF block and record kind.
Reads or writes one QIODevice. Builds the FIFF directory and FiffDirNode block tree on open and exposes typed loaders / emitters for every structured record (id, channel info, coord trans, named matrix, dig point, projector, CTF comp, raw segment, evoked, covariance). The on-disk format is the Elekta/Neuromag FIFF specification — files emitted here round-trip through mne.io.fiff in MNE-Python without modification.
Inheritance
Public Methods
FiffStream(p_pIODevice)
Constructs a fiff stream that uses the I/O device p_pIODevice.
Parameters:
- p_pIODevice : *QIODevice ** A fiff IO device like a fiff QFile or QTCPSocket.
FiffStream(a, mode)
Constructs a fiff stream that operates on a byte array, a.
The mode describes how the device is to be used.
Parameters:
-
a : *QByteArray ** The byte array.
-
mode : QIODevice::OpenMode The open mode.
streamName()
Get the stream name.
Returns:
- QString — the name of the current stream.
id()
Returns the file identifier.
Returns:
- FiffId — The file identifier.
dir()
Returns the directory compiled into a tree dir is set when open() was called.
Returns:
- QList< FiffDirEntry::SPtr > & — the directory.
dir()
Returns the directory compiled into a tree dir is set when open() was called.
Returns:
- const QList< FiffDirEntry::SPtr > & — the directory.