MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Member Functions | Static Public Member Functions | List of all members
FIFFLIB::Fiff Class Reference

The Fiff class provides static wrapper functions to stay consistent with mne matlab toolbox Note: avoid using the wrappers, prefer the wrapped methods! More...

#include <fiff.h>

Public Member Functions

virtual ~Fiff ()
 

Static Public Member Functions

static bool copy_tree (FiffStream::SPtr p_pStreamIn, const FiffId &in_id, const QList< FiffDirNode::SPtr > &p_Nodes, FiffStream::SPtr &p_pStreamOut)
 
static void end_block (FiffStream *p_pStream, fiff_int_t kind)
 
static void end_file (FiffStream *p_pStream)
 
static void finish_writing_raw (FiffStream *p_pStream)
 
static QList< FiffDirNode::SPtrdir_tree_find (const FiffDirNode::SPtr &p_Node, fiff_int_t p_kind)
 
static bool invert_transform (FiffCoordTrans &p_Transform)
 
static bool open (QIODevice &p_IODevice, FiffStream::SPtr &p_pStream)
 
static Eigen::RowVectorXi pick_channels (QStringList &ch_names, const QStringList &include=defaultQStringList, const QStringList &exclude=defaultQStringList)
 
static FiffEvokedSet pick_channels (FiffEvokedSet &orig, const QStringList &include=defaultQStringList, const QStringList &exclude=defaultQStringList)
 
static bool find_evoked (FiffEvokedSet &orig)
 
static FiffInfo pick_info (const FiffInfo &info, const Eigen::RowVectorXi &sel=defaultVectorXi)
 
static Eigen::RowVectorXi pick_types (FiffInfo &info, bool meg, bool eeg=false, bool stim=false, const QStringList &include=defaultQStringList, const QStringList &exclude=defaultQStringList)
 
static QStringList read_bad_channels (FiffStream::SPtr &p_pStream, FiffDirNode::SPtr &p_Node)
 
static QList< FiffCtfCompread_ctf_comp (FiffStream::SPtr &p_pStream, const FiffDirNode::SPtr &p_Node, const QList< FiffChInfo > &p_Chs)
 
static bool read_evoked (QIODevice &p_IODevice, FiffEvoked &data, QVariant setno=0, QPair< float, float > baseline=defaultFloatPair, bool proj=true, fiff_int_t p_aspect_kind=FIFFV_ASPECT_AVERAGE)
 
static bool read_evoked_set (QIODevice &p_IODevice, FiffEvokedSet &data)
 
static bool read_meas_info (FiffStream::SPtr &p_pStream, const FiffDirNode::SPtr &p_Node, FiffInfo &p_Info, FiffDirNode::SPtr &p_NodeInfo)
 
static bool read_named_matrix (FiffStream::SPtr &p_pStream, const FiffDirNode::SPtr &p_Node, fiff_int_t matkind, FiffNamedMatrix &mat)
 
static QList< FiffProjread_proj (FiffStream::SPtr &p_pStream, const FiffDirNode::SPtr &p_Node)
 
static bool read_raw_segment (FiffRawData &raw, Eigen::MatrixXd &data, Eigen::MatrixXd &times, fiff_int_t from=-1, fiff_int_t to=-1, Eigen::MatrixXi sel=defaultMatrixXi)
 
static bool read_raw_segment (FiffRawData &raw, Eigen::MatrixXd &data, Eigen::MatrixXd &times, Eigen::SparseMatrix< double > &mult, fiff_int_t from=-1, fiff_int_t to=-1, Eigen::MatrixXi sel=defaultMatrixXi)
 
static bool read_tag (FiffStream::SPtr &p_pStream, FiffTag::SPtr &p_pTag, qint64 pos=-1)
 
static bool read_tag_info (FiffStream::SPtr &p_pStream, FiffTag::SPtr &p_pTag)
 
static bool setup_read_raw (QIODevice &p_IODevice, FiffRawData &data, bool allow_maxshield=false)
 
static QStringList split_name_list (QString p_sNameList)
 
static void start_block (FiffStream *p_pStream, fiff_int_t kind)
 
static FiffStream::SPtr start_file (QIODevice &p_IODevice)
 
static FiffStream::SPtr start_writing_raw (QIODevice &p_IODevice, const FiffInfo &info, Eigen::RowVectorXd &cals, Eigen::MatrixXi sel=defaultMatrixXi)
 
static void write_ch_info (FiffStream *p_pStream, const FiffChInfo &ch)
 
static void write_coord_trans (FiffStream *p_pStream, FiffCoordTrans &trans)
 
static void write_ctf_comp (FiffStream *p_pStream, QList< FiffCtfComp > &comps)
 
static void write_dig_point (FiffStream *p_pStream, FiffDigPoint &dig)
 
static void write_id (FiffStream *p_pStream, fiff_int_t kind, FiffId &id=FiffId::getDefault())
 
static void write_int (FiffStream *p_pStream, fiff_int_t kind, const fiff_int_t *data, fiff_int_t nel=1)
 
static void write_float (FiffStream *p_pStream, fiff_int_t kind, float *data, fiff_int_t nel=1)
 
static void write_float_matrix (FiffStream *p_pStream, fiff_int_t kind, Eigen::MatrixXf &mat)
 
static void write_name_list (FiffStream *p_pStream, fiff_int_t kind, QStringList &data)
 
static void write_named_matrix (FiffStream *p_pStream, fiff_int_t kind, FiffNamedMatrix &mat)
 
static void write_proj (FiffStream *p_pStream, QList< FiffProj > &projs)
 
static bool write_raw_buffer (FiffStream *p_pStream, const Eigen::MatrixXd &buf, const Eigen::MatrixXd &cals)
 
static void write_string (FiffStream *p_pStream, fiff_int_t kind, QString &data)
 

Detailed Description

The Fiff class provides static wrapper functions to stay consistent with mne matlab toolbox Note: avoid using the wrappers, prefer the wrapped methods!

DECLARE CLASS Fiff

Definition at line 94 of file fiff.h.

Constructor & Destructor Documentation

◆ ~Fiff()

virtual FIFFLIB::Fiff::~Fiff ( )
inlinevirtual

dtor

Definition at line 101 of file fiff.h.

Member Function Documentation

◆ copy_tree()

static bool FIFFLIB::Fiff::copy_tree ( FiffStream::SPtr  p_pStreamIn,
const FiffId in_id,
const QList< FiffDirNode::SPtr > &  p_Nodes,
FiffStream::SPtr p_pStreamOut 
)
inlinestatic

fiff_copy_tree

MNE toolbox root function

Wrapper for the static FiffDirNode::copy_tree function

Copies directory subtrees from fidin to fidout

Parameters
[in]p_pStreamInfiff file to copy from.
[in]in_idfile id description.
[out]p_Nodessubtree directories to be copied.
[in]p_pStreamOutfiff file to write to.
Returns
true if succeeded, false otherwise.

Definition at line 121 of file fiff.h.

◆ dir_tree_find()

static QList<FiffDirNode::SPtr> FIFFLIB::Fiff::dir_tree_find ( const FiffDirNode::SPtr p_Node,
fiff_int_t  p_kind 
)
inlinestatic

fiff_dir_tree_find

MNE toolbox root function

Wrapper for the FiffDirNode dir_tree_find member function

Find nodes of the given kind from a directory tree structure

Parameters
[in]p_NodeThe directory tree structure.
[in]p_kindThe given kind.
Returns
the found nodes.

Definition at line 193 of file fiff.h.

◆ end_block()

static void FIFFLIB::Fiff::end_block ( FiffStream p_pStream,
fiff_int_t  kind 
)
inlinestatic

fiff_end_block

MNE toolbox root function

Wrapper for the FiffStream end_block member function

Writes a FIFF_BLOCK_END tag

Parameters
[in]p_pStreamthe opened fiff file.
[in]kindThe block kind to end.

Definition at line 139 of file fiff.h.

◆ end_file()

static void FIFFLIB::Fiff::end_file ( FiffStream p_pStream)
inlinestatic

fiff_end_file

MNE toolbox root function

Wrapper for the FiffStream end_file member function

Writes the closing tags to a fif file and closes the file

Parameters
[in]p_pStreamthe opened fiff file.

Definition at line 156 of file fiff.h.

◆ find_evoked()

static bool FIFFLIB::Fiff::find_evoked ( FiffEvokedSet orig)
inlinestatic

fiff_find_evoked

MNE toolbox root function

Wrapper for the FiffEvokedDataSet find_evoked member function

Find evoked data sets

Parameters
[out]origThe read evoked data set.
Returns
true when any set was found, false otherwise.

Definition at line 298 of file fiff.h.

◆ finish_writing_raw()

static void FIFFLIB::Fiff::finish_writing_raw ( FiffStream p_pStream)
inlinestatic

fiff_finish_writing_raw

MNE toolbox root function

Wrapper for the FiffStream finish_writing_raw member function

Finishes a raw file by writing all necessary end tags.

Parameters
[in]p_pStreamthe opened fiff file.

Definition at line 173 of file fiff.h.

◆ invert_transform()

static bool FIFFLIB::Fiff::invert_transform ( FiffCoordTrans p_Transform)
inlinestatic

fiff_invert_transform

MNE toolbox root function

Wrapper for the static FiffCoordTrans::invert_transform function

Invert a coordinate transformation

Parameters
[in]p_TransformThe transformation which should be inverted.
Returns
true if succeeded, false otherwise.

Definition at line 212 of file fiff.h.

◆ open()

static bool FIFFLIB::Fiff::open ( QIODevice &  p_IODevice,
FiffStream::SPtr p_pStream 
)
inlinestatic

fiff_open

MNE toolbox root function

Wrapper for the FiffStream open member function

Opens a fif file and provides the directory of tags

Parameters
[in]p_IODeviceA fiff IO device like a fiff QFile or QTCPSocket.
[out]p_pStreamfile which is openened.
Returns
true if succeeded, false otherwise.

Definition at line 232 of file fiff.h.

◆ pick_channels() [1/2]

static FiffEvokedSet FIFFLIB::Fiff::pick_channels ( FiffEvokedSet orig,
const QStringList &  include = defaultQStringList,
const QStringList &  exclude = defaultQStringList 
)
inlinestatic

fiff_pick_channels_evoked

MNE toolbox root function

Wrapper for the FiffEvokedDataSet pick_channels_evoked member function

Pick desired channels from evoked-response data

Parameters
[in]origThe original data.
[in]include- Channels to include (if empty, include all available).
[in]exclude- Channels to exclude (if empty, do not exclude any).
Returns
the desired fiff evoked data set.

Definition at line 277 of file fiff.h.

◆ pick_channels() [2/2]

static Eigen::RowVectorXi FIFFLIB::Fiff::pick_channels ( QStringList &  ch_names,
const QStringList &  include = defaultQStringList,
const QStringList &  exclude = defaultQStringList 
)
inlinestatic

fiff_pick_channels

MNE toolbox root function

Wrapper for the FiffInfo::pick_channels static function

Make a selector to pick desired channels from data

Parameters
[in]ch_names- The channel name list to consult.
[in]include- Channels to include (if empty, include all available).
[in]exclude- Channels to exclude (if empty, do not exclude any).
Returns
the selector matrix (row Vector).

Definition at line 254 of file fiff.h.

◆ pick_info()

static FiffInfo FIFFLIB::Fiff::pick_info ( const FiffInfo info,
const Eigen::RowVectorXi &  sel = defaultVectorXi 
)
inlinestatic

fiff_pick_info

MNE toolbox root function

Wrapper for the FiffInfo pick_info member function

Pick desired channels from measurement info

Parameters
[in]infoThe original data.
[in]selList of channels to select.
Returns
Info modified according to sel.

Definition at line 318 of file fiff.h.

◆ pick_types()

static Eigen::RowVectorXi FIFFLIB::Fiff::pick_types ( FiffInfo info,
bool  meg,
bool  eeg = false,
bool  stim = false,
const QStringList &  include = defaultQStringList,
const QStringList &  exclude = defaultQStringList 
)
inlinestatic

fiff_pick_types

MNE toolbox root function

Wrapper for the FiffInfo pick_types member function

Create a selector to pick desired channel types from data

Parameters
[in]infoThe measurement info.
[in]megInclude MEG channels.
[in]eegInclude EEG channels.
[in]stimInclude stimulus channels.
[in]includeAdditional channels to include (if empty, do not add any).
[in]excludeChannels to exclude (if empty, do not exclude any).
Returns
the selector matrix (row vector).

Definition at line 343 of file fiff.h.

◆ read_bad_channels()

static QStringList FIFFLIB::Fiff::read_bad_channels ( FiffStream::SPtr p_pStream,
FiffDirNode::SPtr p_Node 
)
inlinestatic

fiff_read_bad_channels

MNE toolbox root function

Wrapper for the FiffStream read_bad_channels member function

Reads the bad channel list from a node if it exists

Parameters
[in]p_pStreamThe opened fif file to read from.
[in]p_NodeThe node of interest.
Returns
the bad channel list.

Definition at line 368 of file fiff.h.

◆ read_ctf_comp()

static QList<FiffCtfComp> FIFFLIB::Fiff::read_ctf_comp ( FiffStream::SPtr p_pStream,
const FiffDirNode::SPtr p_Node,
const QList< FiffChInfo > &  p_Chs 
)
inlinestatic

fiff_read_ctf_comp

MNE toolbox root function

Wrapper for the FiffStream read_ctf_comp member function

Read the CTF software compensation data from the given node

Parameters
[in]p_pStreamThe opened fif file to read from.
[in]p_NodeThe node of interest.
[in]p_Chschannels with the calibration info.
Returns
the CTF software compensation data.

Definition at line 390 of file fiff.h.

◆ read_evoked()

static bool FIFFLIB::Fiff::read_evoked ( QIODevice &  p_IODevice,
FiffEvoked data,
QVariant  setno = 0,
QPair< float, float >  baseline = defaultFloatPair,
bool  proj = true,
fiff_int_t  p_aspect_kind = FIFFV_ASPECT_AVERAGE 
)
inlinestatic

fiff_read_evoked

MNE toolbox root function

Wrapper for the FiffEvoked::read static function

Read one evoked data set

Parameters
[in]p_IODeviceA fiff IO device like a fiff QFile or QTCPSocket.
[out]dataThe read evoked data.
[in]setnothe set to pick.
[in]baselineThe time interval to apply rescaling / baseline correction. If None do not apply it. If baseline is (a, b). the interval is between "a (s)" and "b (s)". If a is None the beginning of the data is used and if b is None then b is set to the end of the interval. If baseline is equal ot (None, None) all the time interval is used. If None, no correction is applied.
[in]projApply SSP projection vectors (optional, default = true).
[in]p_aspect_kindEither "FIFFV_ASPECT_AVERAGE" or "FIFFV_ASPECT_STD_ERR". The type of data to read. Only used if "setno" is a str.
Returns
true if successful, false otherwise.

Definition at line 419 of file fiff.h.

◆ read_evoked_set()

static bool FIFFLIB::Fiff::read_evoked_set ( QIODevice &  p_IODevice,
FiffEvokedSet data 
)
inlinestatic

Read all evoked data from one file

Parameters
[in]p_IODeviceA fiff IO device like a fiff QFile or QTCPSocket.
[out]dataThe read evoked data.
Returns
true if successful, false otherwise.

Definition at line 438 of file fiff.h.

◆ read_meas_info()

static bool FIFFLIB::Fiff::read_meas_info ( FiffStream::SPtr p_pStream,
const FiffDirNode::SPtr p_Node,
FiffInfo p_Info,
FiffDirNode::SPtr p_NodeInfo 
)
inlinestatic

fiff_read_meas_info

MNE toolbox root function

Wrapper for the FiffStream read_meas_info member function

Read the measurement info Source is assumed to be an open fiff stream.

Parameters
[in]p_pStreamThe opened fiff stream to read from.
[in]p_NodeThe node of interest.
[out]p_InfoThe read measurement info.
[out]p_NodeInfoThe to measurement corresponding fiff_dir_tree.
Returns
true if succeeded, false otherwise.

Definition at line 461 of file fiff.h.

◆ read_named_matrix()

static bool FIFFLIB::Fiff::read_named_matrix ( FiffStream::SPtr p_pStream,
const FiffDirNode::SPtr p_Node,
fiff_int_t  matkind,
FiffNamedMatrix mat 
)
inlinestatic

fiff_read_named_matrix

MNE toolbox root function

Wrapper for the FiffStream read_named_matrix member function

Reads a named matrix.

Parameters
[in]p_pStreamThe opened fif file to read from.
[in]p_NodeThe node of interest.
[in]matkindThe matrix kind to look for.
[out]matThe named matrix.
Returns
true if succeeded, false otherwise.

Definition at line 483 of file fiff.h.

◆ read_proj()

static QList<FiffProj> FIFFLIB::Fiff::read_proj ( FiffStream::SPtr p_pStream,
const FiffDirNode::SPtr p_Node 
)
inlinestatic

MNE toolbox root function

[ projdata ] = fiff_read_proj(fid,node)

Read the SSP data under a given directory node

Wrapper for the FiffStream read_proj member function

Parameters
[in]p_pStreamThe opened fif file to read from.
[in]p_NodeThe node of interest.
Returns
a list of SSP projectors.

Definition at line 503 of file fiff.h.

◆ read_raw_segment() [1/2]

static bool FIFFLIB::Fiff::read_raw_segment ( FiffRawData raw,
Eigen::MatrixXd &  data,
Eigen::MatrixXd &  times,
Eigen::SparseMatrix< double > &  mult,
fiff_int_t  from = -1,
fiff_int_t  to = -1,
Eigen::MatrixXi  sel = defaultMatrixXi 
)
inlinestatic

fiff_read_raw_segment

MNE toolbox root function

Wrapper for the FiffRawData read_raw_segment member function

Read a specific raw data segment

Parameters
[in]rawstructure returned by fiff_setup_read_raw.
[out]datareturns the data matrix (channels x samples).
[out]timesreturns the time values corresponding to the samples.
[out]multmatrix to store used multiplication matrix (compensator,projection,calibration).
[in]fromfirst sample to include. If omitted, defaults to the first sample in data (optional).
[in]tolast sample to include. If omitted, defaults to the last sample in data (optional).
[in]selchannel selection vector (optional).
Returns
true if succeeded, false otherwise.

Definition at line 556 of file fiff.h.

◆ read_raw_segment() [2/2]

static bool FIFFLIB::Fiff::read_raw_segment ( FiffRawData raw,
Eigen::MatrixXd &  data,
Eigen::MatrixXd &  times,
fiff_int_t  from = -1,
fiff_int_t  to = -1,
Eigen::MatrixXi  sel = defaultMatrixXi 
)
inlinestatic

fiff_read_raw_segment

MNE toolbox root function

Wrapper for the FiffRawData read_raw_segment member function

Read a specific raw data segment

Parameters
[in]rawstructure returned by fiff_setup_read_raw.
[out]datareturns the data matrix (channels x samples).
[out]timesreturns the time values corresponding to the samples.
[in]fromfirst sample to include. If omitted, defaults to the first sample in data (optional).
[in]tolast sample to include. If omitted, defaults to the last sample in data (optional).
[in]selchannel selection vector (optional).
Returns
true if succeeded, false otherwise.

Definition at line 527 of file fiff.h.

◆ read_tag()

static bool FIFFLIB::Fiff::read_tag ( FiffStream::SPtr p_pStream,
FiffTag::SPtr p_pTag,
qint64  pos = -1 
)
inlinestatic

fiff_read_tag

MNE toolbox root function

Wrapper for the FiffTag::read_tag function

Read one tag from a fif file. if pos is not provided, reading starts from the current file position

Parameters
[in]p_pStreamopened fif file.
[out]p_pTagthe read tag.
[in]posposition of the tag inside the fif file.
Returns
true if succeeded, false otherwise.

Definition at line 584 of file fiff.h.

◆ read_tag_info()

static bool FIFFLIB::Fiff::read_tag_info ( FiffStream::SPtr p_pStream,
FiffTag::SPtr p_pTag 
)
inlinestatic

fiff_read_tag_info

MNE toolbox root function

Wrapper for the FiffTag::read_tag_info function

Read tag information of one tag from a fif file. if pos is not provided, reading starts from the current file position

Parameters
[in]p_pStreamopened fif file.
[out]p_pTagthe read tag info.
Returns
true if succeeded, false otherwise.

Definition at line 605 of file fiff.h.

◆ setup_read_raw()

static bool FIFFLIB::Fiff::setup_read_raw ( QIODevice &  p_IODevice,
FiffRawData data,
bool  allow_maxshield = false 
)
inlinestatic

fiff_setup_read_raw

MNE toolbox root function

Wrapper for the FiffStream::setup_read_raw static function

Read information about raw data file

Parameters
[in]p_IODeviceA fiff IO device like a fiff QFile or QTCPSocket.
[out]dataThe raw data information - contains the opened fiff file.
[in]allow_maxshieldAccept unprocessed MaxShield data.
Returns
true if succeeded, false otherwise.

Definition at line 626 of file fiff.h.

◆ split_name_list()

static QStringList FIFFLIB::Fiff::split_name_list ( QString  p_sNameList)
inlinestatic

fiff_split_name_list

MNE toolbox root function

Wrapper for the FiffStream::split_name_list static function

Splits a string by looking for seperator ":"

Parameters
[in]p_sNameListstring to split.
Returns
the splitted string list.

Definition at line 645 of file fiff.h.

◆ start_block()

static void FIFFLIB::Fiff::start_block ( FiffStream p_pStream,
fiff_int_t  kind 
)
inlinestatic

fiff_start_block

MNE toolbox root function

Wrapper for the FiffStream start_block member function

Writes a FIFF_BLOCK_START tag

Parameters
[in]p_pStreamAn open fif file to write to.
[in]kindThe block kind to start.

Definition at line 663 of file fiff.h.

◆ start_file()

static FiffStream::SPtr FIFFLIB::Fiff::start_file ( QIODevice &  p_IODevice)
inlinestatic

fiff_start_file

MNE toolbox root function

Wrapper for the FiffStream::start_file static function

Opens a fiff file for writing and writes the compulsory header tags

Parameters
[in]p_IODeviceA fiff IO device like a fiff QFile or QTCPSocket.
Returns
The opened file.

Definition at line 682 of file fiff.h.

◆ start_writing_raw()

static FiffStream::SPtr FIFFLIB::Fiff::start_writing_raw ( QIODevice &  p_IODevice,
const FiffInfo info,
Eigen::RowVectorXd &  cals,
Eigen::MatrixXi  sel = defaultMatrixXi 
)
inlinestatic

fiff_start_writing_raw

MNE toolbox root function

Wrapper for the FiffStream::start_writing_raw static function

function [fid,cals] = fiff_start_writing_raw(name,info,sel)

Parameters
[in]p_IODeviceA fiff IO device like a fiff QFile or QTCPSocket.
[in]infoThe measurement info block of the source file.
[out]calsThecalibration matrix.
[in]selWhich channels will be included in the output file (optional).
Returns
the started fiff file.

Definition at line 704 of file fiff.h.

◆ write_ch_info()

static void FIFFLIB::Fiff::write_ch_info ( FiffStream p_pStream,
const FiffChInfo ch 
)
inlinestatic

fiff_write_ch_info

MNE toolbox root function

Wrapper for the FiffStream write_ch_info member function

Writes a channel information record to a fif file The type, cal, unit, and pos members are explained in Table 9.5 of the MNE manual

Parameters
[in]p_pStreamAn open fif file.
[in]chThe channel information structure to write.

Definition at line 727 of file fiff.h.

◆ write_coord_trans()

static void FIFFLIB::Fiff::write_coord_trans ( FiffStream p_pStream,
FiffCoordTrans trans 
)
inlinestatic

fiff_write_coord_trans

MNE toolbox root function

Wrapper for the FiffStream write_coord_trans member function

Writes a coordinate transformation structure

Parameters
[in]p_pStreamAn open fif file.
[in]transThe coordinate transfomation structure.

Definition at line 745 of file fiff.h.

◆ write_ctf_comp()

static void FIFFLIB::Fiff::write_ctf_comp ( FiffStream p_pStream,
QList< FiffCtfComp > &  comps 
)
inlinestatic

fiff_write_ctf_comp

MNE toolbox root function

Wrapper for the FiffStream write_ctf_comp member function

Writes the CTF compensation data into a fif file

Parameters
[in]p_pStreamAn open fif file.
[in]compsThe compensation data to write.

Definition at line 763 of file fiff.h.

◆ write_dig_point()

static void FIFFLIB::Fiff::write_dig_point ( FiffStream p_pStream,
FiffDigPoint dig 
)
inlinestatic

fiff_write_dig_point

MNE toolbox root function

Wrapper for the FiffStream write_dig_point member function

Writes a digitizer data point into a fif file

Parameters
[in]p_pStreamAn open fif file.
[in]digThe point to write.

Definition at line 781 of file fiff.h.

◆ write_float()

static void FIFFLIB::Fiff::write_float ( FiffStream p_pStream,
fiff_int_t  kind,
float *  data,
fiff_int_t  nel = 1 
)
inlinestatic

fiff_write_float

MNE toolbox root function

Wrapper for the FiffStream write_float member function

Writes a single-precision floating point tag to a fif file

Parameters
[in]p_pStreamAn open fif file.
[in]kindTag kind.
[in]dataThe float data pointer.
[in]nelNumber of floats to write (default = 1).

Definition at line 841 of file fiff.h.

◆ write_float_matrix()

static void FIFFLIB::Fiff::write_float_matrix ( FiffStream p_pStream,
fiff_int_t  kind,
Eigen::MatrixXf &  mat 
)
inlinestatic

fiff_write_float_matrix

MNE toolbox root function

Wrapper for the FiffStream write_float_matrix member function

Writes a single-precision floating-point matrix tag

Parameters
[in]p_pStreamAn open fif file.
[in]kindThe tag kind.
[in]matThe data matrix.

Definition at line 860 of file fiff.h.

◆ write_id()

static void FIFFLIB::Fiff::write_id ( FiffStream p_pStream,
fiff_int_t  kind,
FiffId id = FiffId::getDefault() 
)
inlinestatic

fiff_write_id

MNE toolbox root function

Wrapper for the FiffStream write_id member function

Writes fiff id If the id argument is missing it will be generated here

Parameters
[in]p_pStreamAn open fif file.
[in]kindThe tag kind.
[in]idThe id to write.

Definition at line 801 of file fiff.h.

◆ write_int()

static void FIFFLIB::Fiff::write_int ( FiffStream p_pStream,
fiff_int_t  kind,
const fiff_int_t *  data,
fiff_int_t  nel = 1 
)
inlinestatic

fiff_write_int

MNE toolbox root function

Wrapper for the FiffStream write_int member function

Writes a 32-bit integer tag to a fif file

Parameters
[in]p_pStreamAn open fif file.
[in]kindTag kind.
[in]dataThe integer data pointer.
[in]nelNumber of integers to write (default = 1).

Definition at line 821 of file fiff.h.

◆ write_name_list()

static void FIFFLIB::Fiff::write_name_list ( FiffStream p_pStream,
fiff_int_t  kind,
QStringList &  data 
)
inlinestatic

fiff_write_name_list

MNE toolbox root function

Wrapper for the FiffStream write_name_list member function

Writes a colon-separated list of names

Parameters
[in]p_pStreamAn open fif file.
[in]kindThe tag kind.
[in]dataAn array of names to create the list from.

Definition at line 879 of file fiff.h.

◆ write_named_matrix()

static void FIFFLIB::Fiff::write_named_matrix ( FiffStream p_pStream,
fiff_int_t  kind,
FiffNamedMatrix mat 
)
inlinestatic

fiff_write_named_matrix

MNE toolbox root function

Wrapper for the FiffStream write_named_matrix member function

Writes a named single-precision floating-point matrix

Parameters
[in]p_pStreamAn open fif file.
[in]kindThe tag kind to use for the data.
[in]matThe data matrix.

Definition at line 898 of file fiff.h.

◆ write_proj()

static void FIFFLIB::Fiff::write_proj ( FiffStream p_pStream,
QList< FiffProj > &  projs 
)
inlinestatic

fiff_write_proj

MNE toolbox root function

Wrapper for the FiffStream write_proj member function

Writes the projection data into a fif file

Parameters
[in]p_pStreamAn open fif file.
[in]projsThe compensation data to write.

Definition at line 916 of file fiff.h.

◆ write_raw_buffer()

static bool FIFFLIB::Fiff::write_raw_buffer ( FiffStream p_pStream,
const Eigen::MatrixXd &  buf,
const Eigen::MatrixXd &  cals 
)
inlinestatic

fiff_write_raw_buffer

MNE toolbox root function

Wrapper for the FiffStream write_raw_buffer member function

Writes a raw buffer.

Parameters
[in]p_pStreamAn open fif file.
[in]bufthe buffer to write.
[in]calscalibration factors.
Returns
true if succeeded, false otherwise.

Definition at line 937 of file fiff.h.

◆ write_string()

static void FIFFLIB::Fiff::write_string ( FiffStream p_pStream,
fiff_int_t  kind,
QString &  data 
)
inlinestatic

fiff_write_string

MNE toolbox root function

Wrapper for the FiffStream write_string member function

Writes a string tag

Parameters
[in]p_pStreamAn open fif file.
[in]kindThe tag kind.
[in]dataThe string data to write.

Definition at line 956 of file fiff.h.


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