MNE-CPP
0.1.9
A Framework for Electrophysiology
|
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) | |
virtual | ~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 () const |
quint16 * | toUnsignedShort () const |
qint16 * | toShort () const |
quint32 * | toUnsignedInt () const |
qint32 * | toInt () const |
qint32 * | toJulian () const |
float * | toFloat () const |
double * | toDouble () const |
QString | toString () const |
qint16 * | toDauPack16 () const |
FiffId | toFiffID () const |
FiffDigPoint | toDigPoint () const |
FiffCoordTrans | toCoordTrans () const |
FiffChInfo | toChInfo () const |
QList< QSharedPointer< FiffDirEntry > > | toDirEntry () const |
Eigen::MatrixXi | toIntMatrix () const |
Eigen::MatrixXf | toFloatMatrix () const |
Eigen::SparseMatrix< double > | toSparseFloatMatrix () const |
Static Public Member Functions | |
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 148 of file fiff_tag.h.
typedef QSharedPointer<const FiffTag> FIFFLIB::FiffTag::ConstSPtr |
Const shared pointer type for FiffTag.
Definition at line 153 of file fiff_tag.h.
typedef QSharedPointer<FiffTag> FIFFLIB::FiffTag::SPtr |
Shared pointer type for FiffTag.
Definition at line 152 of file fiff_tag.h.
FiffTag::FiffTag | ( | ) |
ctor //ToDo add FiffStream to constructor and remove static implementations --> make them members
Definition at line 64 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 75 of file fiff_tag.cpp.
|
virtual |
Destroys the FiffTag.
Definition at line 94 of file fiff_tag.cpp.
|
static |
Convert coil position descriptor
[in,out] | pos | coil position descriptor to convert. |
|
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 Convert matrix data read from a file inside a fiff tag
[in,out] | tag | matrix data to convert. |
|
static |
Convert matrix data before writing to a file inside a fiff tag
[in,out] | tag | matrix data to convert. |
Definition at line 392 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 468 of file fiff_tag.cpp.
|
static |
These return information about fiff type base.
Definition at line 730 of file fiff_tag.cpp.
|
static |
These return information about a fiff type.
Definition at line 723 of file fiff_tag.cpp.
|
static |
These return information about the matrix coding.
Definition at line 737 of file fiff_tag.cpp.
QString FiffTag::getInfo | ( | ) | const |
Type information as a string
Definition at line 168 of file fiff_tag.cpp.
fiff_int_t FiffTag::getMatrixCoding | ( | ) | const |
Provides information about matrix coding
Definition at line 104 of file fiff_tag.cpp.
bool FiffTag::getMatrixDimensions | ( | qint32 & | p_ndim, |
QVector< qint32 > & | p_Dims | ||
) | const |
Returns matrix dimensions Refactors: fiff_get_matrix_dims (fiff_matrix.c)
[out] | p_ndim | number of dimensions. |
[out] | p_Dims | vector containing the size of each dimension. |
Definition at line 121 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 111 of file fiff_tag.cpp.
|
inline |
to Byte Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 543 of file fiff_tag.h.
|
inline |
to fiff CH INFO
to fiff CH INFO STRUCT
Definition at line 770 of file fiff_tag.h.
|
inline |
to fiff COORD TRANS
Definition at line 728 of file fiff_tag.h.
|
inline |
to DauPack16 Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 637 of file fiff_tag.h.
|
inline |
|
inline |
to fiff DIR ENTRY
Definition at line 865 of file fiff_tag.h.
|
inline |
to Double Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 617 of file fiff_tag.h.
|
inline |
to complex float Allocates new memory - pointer has to be deleted ater use
Definition at line 681 of file fiff_tag.h.
|
inline |
to Float Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 607 of file fiff_tag.h.
|
inline |
to fiff FIFFT FLOAT MATRIX
parses a fiff float matrix
Definition at line 918 of file fiff_tag.h.
|
inline |
to Int Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 583 of file fiff_tag.h.
|
inline |
|
inline |
to Julian Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 595 of file fiff_tag.h.
|
inline |
to Short Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 563 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 947 of file fiff_tag.h.
|
inline |
|
inline |
to Int Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 573 of file fiff_tag.h.
|
inline |
to unsigned Short Fast access; Data are deleted if tag gets deleted, and wise versa
Definition at line 553 of file fiff_tag.h.
fiff_int_t FIFFLIB::FiffTag::kind |
Tag number. This defines the meaning of the item
Definition at line 499 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 506 of file fiff_tag.h.
fiff_int_t FIFFLIB::FiffTag::type |
Data type. This defines the representation of the data.
Definition at line 501 of file fiff_tag.h.