MNE-CPP
beta 1.0
|
FIFF data tag. More...
#include <fiff_tag.h>
Public Types | |
typedef QSharedPointer< FiffTag > | SPtr |
typedef QSharedPointer< const FiffTag > | ConstSPtr |
Public Member Functions | |
FiffTag () | |
FiffTag (const FiffTag *p_pFiffTag) | |
~FiffTag () | |
fiff_int_t | getMatrixCoding () const |
bool | isMatrix () const |
bool | getMatrixDimensions (qint32 &p_ndim, QVector< qint32 > &p_Dims) const |
fiff_int_t | getType () const |
QString | getInfo () const |
quint8 * | toByte () |
quint16 * | toUnsignedShort () |
qint16 * | toShort () |
quint32 * | toUnsignedInt () |
qint32 * | toInt () |
float * | toFloat () |
double * | toDouble () |
QString | toString () |
qint16 * | toDauPack16 () |
std::complex< float > * | toComplexFloat () |
std::complex< double > * | toComplexDouble () |
FiffId | toFiffID () const |
FiffDigPoint | toDigPoint () const |
FiffCoordTrans | toCoordTrans () const |
FiffChInfo | toChInfo () const |
QList< FiffDirEntry > | toDirEntry () const |
MatrixXi | toIntMatrix () const |
MatrixXf | toFloatMatrix () const |
SparseMatrix< double > | toSparseFloatMatrix () const |
Static Public Member Functions | |
static bool | read_tag_data (FiffStream *p_pStream, FiffTag::SPtr &p_pTag, qint64 pos=-1) |
static bool | read_tag_info (FiffStream *p_pStream, FiffTag::SPtr &p_pTag, bool p_bDoSkip=true) |
static bool | read_rt_tag (FiffStream *p_pStream, FiffTag::SPtr &p_pTag) |
static bool | read_tag (FiffStream *p_pStream, FiffTag::SPtr &p_pTag, qint64 pos=-1) |
static void | convert_ch_pos (FiffChPos *pos) |
static void | convert_matrix_from_file_data (FiffTag::SPtr tag) |
static void | convert_matrix_to_file_data (FiffTag::SPtr tag) |
static void | convert_tag_data (FiffTag::SPtr tag, int from_endian, int to_endian) |
static fiff_int_t | fiff_type_fundamental (fiff_int_t type) |
static fiff_int_t | fiff_type_base (fiff_int_t type) |
static fiff_int_t | fiff_type_matrix_coding (fiff_int_t type) |
Public Attributes | |
fiff_int_t | kind |
fiff_int_t | type |
fiff_int_t | next |
FIFF data tag.
Tags are used in front of data items to tell what they are.
Definition at line 163 of file fiff_tag.h.
typedef QSharedPointer<const FiffTag> FIFFLIB::FiffTag::ConstSPtr |
Const shared pointer type for FiffTag.
Definition at line 167 of file fiff_tag.h.
typedef QSharedPointer<FiffTag> FIFFLIB::FiffTag::SPtr |
Shared pointer type for FiffTag.
Definition at line 166 of file fiff_tag.h.
FiffTag::FiffTag | ( | ) |
ctor //ToDo add FiffStream to constructor and remove static implementations –> make them members
Definition at line 68 of file fiff_tag.cpp.
FiffTag::FiffTag | ( | const FiffTag * | p_pFiffTag | ) |
copy ctor //ToDo add FiffStream to constructor and remove static implementations –> make them members
Definition at line 77 of file fiff_tag.cpp.
FiffTag::~FiffTag | ( | ) |
Destroys the FiffTag.
Definition at line 98 of file fiff_tag.cpp.
|
static |
Convert coil position descriptor
[in,out] | pos | coil position descriptor to convert |
Machine dependent data type conversions (tag info only)
Definition at line 449 of file fiff_tag.cpp.
|
static |
Convert matrix data read from a file inside a fiff tag
[in,out] | tag | matrix data to convert |
Definition at line 465 of file fiff_tag.cpp.
|
static |
Convert matrix data before writing to a file inside a fiff tag
[in,out] | tag | matrix data to convert |
Definition at line 540 of file fiff_tag.cpp.
|
static |
Machine dependent data type conversions (tag info only)
from_endian defines the byte order of the input to_endian defines the byte order of the output
Either of these may be specified as FIFFV_LITTLE_ENDIAN, FIFFV_BIG_ENDIAN, or FIFFV_NATIVE_ENDIAN. The last choice means that the native byte order value will be substituted here before proceeding
[in,out] | tag | matrix data to convert |
[in] | from_endian | from endian encoding |
[in] | to_endian | to endian encoding |
Definition at line 617 of file fiff_tag.cpp.
|
static |
These return information about fiff type base.
Definition at line 880 of file fiff_tag.cpp.
|
static |
These return information about a fiff type.
Definition at line 872 of file fiff_tag.cpp.
|
static |
These return information about the matrix coding.
Definition at line 888 of file fiff_tag.cpp.
QString FiffTag::getInfo | ( | ) | const |
Type information as a string
Definition at line 311 of file fiff_tag.cpp.
fiff_int_t FiffTag::getMatrixCoding | ( | ) | const |
Provides information about matrix coding
Definition at line 243 of file fiff_tag.cpp.
bool FiffTag::getMatrixDimensions | ( | qint32 & | p_ndim, |
QVector< qint32 > & | p_Dims | ||
) | const |
Returns matrix dimensions
[out] | p_ndim | number of dimensions |
[out] | p_Dims | vector containing the size of each dimension |
Definition at line 262 of file fiff_tag.cpp.
fiff_int_t FiffTag::getType | ( | ) | const |
bool FiffTag::isMatrix | ( | ) | const |
Provides information if tag contains a matrix
Definition at line 251 of file fiff_tag.cpp.
|
static |
Read one tag from a fif real-time stream. difference to the other read tag functions is: that this function has blocking behaviour (waitForReadyRead)
[in] | p_pStream | opened fif file |
[out] | p_pTag | the read tag |
Definition at line 184 of file fiff_tag.cpp.
|
static |
Read one tag from a fif file. if pos is not provided, reading starts from the current file position
[in] | p_pStream | opened fif file |
[out] | p_pTag | the read tag |
[in] | pos | position of the tag inside the fif file |
Definition at line 204 of file fiff_tag.cpp.
|
static |
Read tag data from a fif file. if pos is not provided, reading starts from the current file position
[in] | p_pStream | opened fif file |
[out] | p_pTag | the read tag |
[in] | pos | position of the tag inside the fif file |
Definition at line 109 of file fiff_tag.cpp.
|
static |
Read tag information of one tag from a fif file. if pos is not provided, reading starts from the current file position
[in] | p_pStream | opened fif file |
[out] | p_pTag | the read tag info |
[in] | p_bDoSkip | if true it skips the data of the tag (optional, default = true) |
Definition at line 137 of file fiff_tag.cpp.
|
inline |
to Byte Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 606 of file fiff_tag.h.
|
inline |
to fiff CH INFO
to fiff CH INFO STRUCT
Definition at line 834 of file fiff_tag.h.
|
inline |
to complex double Allocates new memory - pointer has to be deleted ater use
Definition at line 722 of file fiff_tag.h.
|
inline |
to complex float Allocates new memory - pointer has to be deleted ater use
Definition at line 705 of file fiff_tag.h.
|
inline |
to fiff COORD TRANS
Definition at line 791 of file fiff_tag.h.
|
inline |
to DauPack16 Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 694 of file fiff_tag.h.
|
inline |
|
inline |
to fiff OLD PACK to fiff DIR ENTRY
to fiff OLD PACK
Definition at line 921 of file fiff_tag.h.
|
inline |
to Double Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 672 of file fiff_tag.h.
|
inline |
|
inline |
to Float Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 661 of file fiff_tag.h.
|
inline |
to fiff FIFFT FLOAT MATRIX
parses a fiff float matrix
Definition at line 976 of file fiff_tag.h.
|
inline |
to Int Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 650 of file fiff_tag.h.
|
inline |
|
inline |
to Short Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 628 of file fiff_tag.h.
|
inline |
to sparse fiff FIFFT FLOAT MATRIX
parses a sparse fiff float matrix and returns a double sparse matrix to make sure only double is used
Definition at line 1006 of file fiff_tag.h.
|
inline |
|
inline |
to Int Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 639 of file fiff_tag.h.
|
inline |
to unsigned Short Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 617 of file fiff_tag.h.
fiff_int_t FIFFLIB::FiffTag::kind |
Tag number. This defines the meaning of the item
Definition at line 576 of file fiff_tag.h.
fiff_int_t FIFFLIB::FiffTag::next |
Pointer to the next object. Zero if the object follows sequentially in file. Negative at the end of file
Definition at line 583 of file fiff_tag.h.
fiff_int_t FIFFLIB::FiffTag::type |
Data type. This defines the reperentation of the data.
Definition at line 578 of file fiff_tag.h.