MNE-CPP
0.1.9
A Framework for Electrophysiology
|
IO utilitie routines. More...
#include <ioutils.h>
Public Types | |
typedef QSharedPointer< IOUtils > | SPtr |
typedef QSharedPointer< const IOUtils > | ConstSPtr |
Public Member Functions | |
~IOUtils () | |
Static Public Member Functions | |
static qint32 | fread3 (QDataStream &p_qStream) |
static qint32 | fread3 (std::iostream &stream) |
static Eigen::VectorXi | fread3_many (QDataStream &p_qStream, qint32 count) |
static Eigen::VectorXi | fread3_many (std::iostream &stream, qint32 count) |
static qint16 | swap_short (qint16 source) |
static qint32 | swap_int (qint32 source) |
static void | swap_intp (qint32 *source) |
static qint64 | swap_long (qint64 source) |
static void | swap_longp (qint64 *source) |
static float | swap_float (float source) |
static void | swap_floatp (float *source) |
static void | swap_doublep (double *source) |
template<typename T > | |
static bool | write_eigen_matrix (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &in, const QString &sPath, const QString &sDescription=QString()) |
template<typename T > | |
static bool | write_eigen_matrix (const Eigen::Matrix< T, 1, Eigen::Dynamic > &in, const QString &sPath, const QString &sDescription=QString()) |
template<typename T > | |
static bool | write_eigen_matrix (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &in, const QString &sPath, const QString &sDescription=QString()) |
template<typename T > | |
static bool | write_eigen_matrix (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &in, const std::string &sPath, const std::string &sDescription=std::string()) |
template<typename T > | |
static bool | write_eigen_matrix (const Eigen::Matrix< T, 1, Eigen::Dynamic > &in, const std::string &sPath, const std::string &sDescription=std::string()) |
template<typename T > | |
static bool | write_eigen_matrix (const Eigen::Matrix< T, Eigen::Dynamic, 1 > &in, const std::string &sPath, const std::string &sDescription=std::string()) |
template<typename T > | |
static bool | read_eigen_matrix (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &out, const QString &path) |
template<typename T > | |
static bool | read_eigen_matrix (Eigen::Matrix< T, 1, Eigen::Dynamic > &out, const QString &path) |
template<typename T > | |
static bool | read_eigen_matrix (Eigen::Matrix< T, Eigen::Dynamic, 1 > &out, const QString &path) |
template<typename T > | |
static bool | read_eigen_matrix (Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &out, const std::string &path) |
template<typename T > | |
static bool | read_eigen_matrix (Eigen::Matrix< T, 1, Eigen::Dynamic > &out, const std::string &path) |
template<typename T > | |
static bool | read_eigen_matrix (Eigen::Matrix< T, Eigen::Dynamic, 1 > &out, const std::string &path) |
static QStringList | get_new_chnames_conventions (const QStringList &chNames) |
static std::vector< std::string > | get_new_chnames_conventions (const std::vector< std::string > &chNames) |
static QStringList | get_old_chnames_conventions (const QStringList &chNames) |
static std::vector< std::string > | get_old_chnames_conventions (const std::vector< std::string > &chNames) |
static bool | check_matching_chnames_conventions (const QStringList &chNamesA, const QStringList &chNamesB, bool bCheckForNewNamingConvention=false) |
static bool | check_matching_chnames_conventions (const std::vector< std::string > &chNamesA, const std::vector< std::string > &chNamesB, bool bCheckForNewNamingConvention=false) |
typedef QSharedPointer<const IOUtils> UTILSLIB::IOUtils::ConstSPtr |
typedef QSharedPointer<IOUtils> UTILSLIB::IOUtils::SPtr |
|
inline |
|
static |
Checks if all names from chNamesA are in chNamesB. If wanted each name in chNamesA is transformed to the old and new naming convention and checked if in chNamesB.
[in] | chNamesA | The channel names. |
[in] | chNamesB | The channel names which is to be compared to. |
[in] | bCheckForNewNamingConvention | Whether to use old and new naming conventions while checking. |
Definition at line 334 of file ioutils.cpp.
|
static |
Checks if all names from chNamesA are in chNamesB. If wanted each name in chNamesA is transformed to the old and new naming convention and checked if in chNamesB.
[in] | chNamesA | The channel names. |
[in] | chNamesB | The channel names which is to be compared to. |
[in] | bCheckForNewNamingConvention | Whether to use old and new naming conventions while checking. |
Definition at line 383 of file ioutils.cpp.
|
static |
mne_fread3(fid)
Reads a 3-byte integer out of a stream
[in] | p_qStream | Stream to read from. |
Definition at line 69 of file ioutils.cpp.
|
static |
mne_fread3(fid)
Reads a 3-byte integer out of a stream
[in] | stream | Stream to read from. |
Definition at line 80 of file ioutils.cpp.
|
static |
fread3_many(fid,count)
Reads a 3-byte integer out of a stream
[in] | p_qStream | Stream to read from. |
[in] | count | Number of elements to read. |
Definition at line 91 of file ioutils.cpp.
|
static |
fread3_many(fid,count)
Reads a 3-byte integer out of a stream
[in] | stream | Stream to read from. |
[in] | count | Number of elements to read. |
Definition at line 103 of file ioutils.cpp.
|
static |
Returns the new channel naming conventions (whitespcae between channel type and number) for the input list.
[in] | chNames | The channel names. |
Definition at line 267 of file ioutils.cpp.
|
static |
Returns the new channel naming conventions (whitespcae between channel type and number) for the input list.
[in] | chNames | The channel names. |
Definition at line 283 of file ioutils.cpp.
|
static |
Returns the old channel naming conventions (whitespcae between channel type and number) for the input list.
[in] | chNames | The channel names. |
Definition at line 297 of file ioutils.cpp.
|
static |
Returns the old channel naming conventions (whitespcae between channel type and number) for the input list.
[in] | chNames | The channel names. |
Definition at line 320 of file ioutils.cpp.
|
static |
|
static |
|
static |
|
static |
swap float
[in] | source | float to swap. |
Definition at line 207 of file ioutils.cpp.
|
static |
|
static |
swap integer
[in] | source | integer to swap. |
Definition at line 128 of file ioutils.cpp.
|
static |
|
static |
swap long
[in] | source | long to swap. |
Definition at line 162 of file ioutils.cpp.
|
static |
|
static |
swap short
[in] | source | short to swap. |
Definition at line 115 of file ioutils.cpp.
|
static |
|
static |