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_FiffTag)=default | |
| FiffTag (FiffTag &&other)=default | |
| FiffTag & | operator= (const FiffTag &other)=default |
| FiffTag & | operator= (FiffTag &&other)=default |
| ~FiffTag ()=default | |
| 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) |
| static qint32 | storageSize () |
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 151 of file fiff_tag.h.

| typedef QSharedPointer<const FiffTag> FIFFLIB::FiffTag::ConstSPtr |
Const shared pointer type for FiffTag.
Definition at line 156 of file fiff_tag.h.
| typedef QSharedPointer<FiffTag> FIFFLIB::FiffTag::SPtr |
Shared pointer type for FiffTag.
Definition at line 155 of file fiff_tag.h.
| FiffTag::FiffTag | ( | ) |
Constructs a default FiffTag.
Definition at line 63 of file fiff_tag.cpp.
|
default |
Copy constructor.
| [in] | p_FiffTag | FiffTag to copy. |
|
default |
Move constructor.
|
default |
Destroys the FiffTag.
|
static |
Convert coil position descriptor
| [in,out] | pos | coil position descriptor to convert. |
Machine dependent data type conversions (tag info only)
Definition at line 273 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
Definition at line 288 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 362 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 438 of file fiff_tag.cpp.
|
static |
These return information about fiff type base.
| [in] | type | The fiff data type to query. |
Definition at line 700 of file fiff_tag.cpp.
|
static |
These return information about a fiff type.
| [in] | type | The fiff data type to query. |
Definition at line 693 of file fiff_tag.cpp.
|
static |
These return information about the matrix coding.
| [in] | type | The fiff data type to query. |
Definition at line 707 of file fiff_tag.cpp.
| QString FiffTag::getInfo | ( | ) | const |
Type information as a string
Definition at line 138 of file fiff_tag.cpp.
| fiff_int_t FiffTag::getMatrixCoding | ( | ) | const |
Provides information about matrix coding
Definition at line 74 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 91 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 81 of file fiff_tag.cpp.
|
inlinestatic |
Size of the on-disk tag info header: kind + type + size + next = 4 x fiff_int_t. This corresponds to the old sizeof(fiffTagRec) - sizeof(fiff_data_t *).
Definition at line 521 of file fiff_tag.h.
|
inline |
to Byte Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 535 of file fiff_tag.h.
|
inline |
to fiff CH INFO
to fiff CH INFO STRUCT
Definition at line 762 of file fiff_tag.h.
|
inline |
to fiff COORD TRANS
Definition at line 720 of file fiff_tag.h.
|
inline |
to DauPack16 Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 629 of file fiff_tag.h.
|
inline |
|
inline |
to fiff OLD PACK to fiff DIR ENTRY
to fiff OLD PACK
Definition at line 858 of file fiff_tag.h.
|
inline |
to Double Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 609 of file fiff_tag.h.
|
inline |
|
inline |
to Float Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 599 of file fiff_tag.h.
|
inline |
to fiff FIFFT FLOAT MATRIX
parses a fiff float matrix
Definition at line 911 of file fiff_tag.h.
|
inline |
to Int Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 575 of file fiff_tag.h.
|
inline |
|
inline |
to Julian Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 587 of file fiff_tag.h.
|
inline |
to Short Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 555 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 940 of file fiff_tag.h.
|
inline |
|
inline |
to Int Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 565 of file fiff_tag.h.
|
inline |
to unsigned Short Fast access; Data are deleted if tag gets deleted, and vice versa
Definition at line 545 of file fiff_tag.h.
| fiff_int_t FIFFLIB::FiffTag::kind |
Tag number. This defines the meaning of the item
Definition at line 507 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 511 of file fiff_tag.h.
| fiff_int_t FIFFLIB::FiffTag::type |
Data type. This defines the representation of the data.
Definition at line 509 of file fiff_tag.h.