MNE-CPP  0.1.9
A Framework for Electrophysiology
Functions | Variables
fiff_tag.cpp File Reference

Definition of the FiffTag Class. More...

#include "fiff_tag.h"
#include <utils/ioutils.h>
#include <complex>
#include <iostream>
#include <QTcpSocket>
Include dependency graph for fiff_tag.cpp:

Go to the source code of this file.

Functions

 if (fiff_type_fundamental(tag->type) !=FIFFTS_FS_MATRIX) return
 
 if (tag->data()==NULL) return
 
 if (tsize< sizeof(fiff_int_t)) return
 
 if (fiff_type_matrix_coding(tag->type)==FIFFTS_MC_DENSE) = nz + dimp[2] + 1
 
 if (ndim > 2) return
 
 if (kind==FIFFT_INT)
 

Variables

int k
 
int * dimp = ((fiff_int_t *)((tag->data())+tag->size()-sizeof(fiff_int_t)))
 
int * data
 
int kind = fiff_type_base(tag->type)
 
int np = nz
 
int nz = dimp[0]
 
float * fdata
 
double * ddata
 
unsigned int tsize = tag->size()
 
 ndim = *dimp
 
 else
 
else return
 

Detailed Description

Definition of the FiffTag Class.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu
Since
0.1.0
Date
July, 2012

LICENSE

Copyright (C) 2012, Lorenz Esch, Matti Hamalainen, Christoph Dinh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file fiff_tag.cpp.

Variable Documentation

◆ else

else
Initial value:
{
if (tsize < (ndim+2)*sizeof(fiff_int_t))
return

Definition at line 349 of file fiff_tag.cpp.

◆ k

int k
Initial value:
{
int ndim

Machine dependent data type conversions (tag info only) ‍/

void FiffTag::fiff_convert_tag_info(FiffTag*& tag)

{ tag->kind = swap_int(tag->kind); tag->type = swap_int(tag->type); tag->size = swap_int(tag->size); tag->next = swap_int(tag->next); return; }

#endif /* INTEL_X86_ARCH *‍/


void FiffTag::convert_ch_pos(FiffChPos* pos) { int k; pos->coil_type = IOUtils::swap_int(pos->coil_type); for (k = 0; k < 3; k++) { IOUtils::swap_floatp(&pos->r0[k]); IOUtils::swap_floatp(&pos->ex[k]); IOUtils::swap_floatp(&pos->ey[k]); IOUtils::swap_floatp(&pos->ez[k]); } return; }


void FiffTag::convert_matrix_from_file_data(FiffTag::SPtr tag) /* Assumes that the input is in the non-native byte order and needs to be swapped to the other one

Definition at line 322 of file fiff_tag.cpp.