1
//---------------------------------------------------------------------------
3
// Project: OpenWalnut ( http://www.openwalnut.org )
5
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
6
// For more information see http://www.openwalnut.org/copying
8
// This file is part of OpenWalnut.
10
// OpenWalnut is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU Lesser General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
15
// OpenWalnut is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
// GNU Lesser General Public License for more details.
20
// You should have received a copy of the GNU Lesser General Public License
21
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
23
//---------------------------------------------------------------------------
25
#ifndef WREADERBIOSIG_H
26
#define WREADERBIOSIG_H
33
#include <boost/shared_ptr.hpp>
35
#include "WReaderEEG.h"
38
* Reader for several formats for biological signal.
40
* \ingroup dataHandler
42
class WReaderBiosig : public WReaderEEG
46
* Constructs a loader to be executed in its own thread and sets the data needed
47
* for the loader when executed in its own thread.
48
* \param fileName this file will be loaded
50
explicit WReaderBiosig( std::string fileName );
55
* \return the dataset loaded.
57
virtual boost::shared_ptr< WDataSet > load();
62
* Fill the data into the segment doing the needed conversions, assuming
63
* column based channels
64
* \param segment the segment to be filled
65
* \param data the data to be filled into the segment
67
void fillSegmentColumnBased( std::vector<std::vector<double> >* segment, biosig_data_type* data );
70
* Fill the data into the segment doing the needed conversions, assuming
72
* \param segment the segment to be filled
73
* \param data the data to be filled into the segment
75
void fillSegmentRowBased( std::vector<std::vector<double> >* segment, biosig_data_type* data );
77
HDRTYPE* hd; //!< Header of file
78
size_t m_columns; //!< columns of the storage in the file
79
size_t m_rows; //!< rows of the storage in the file
82
#endif // WREADERBIOSIG_H