Go to the documentation of this file.
20 #ifndef _DEMUXDEBUGREADER_HPP
21 #define _DEMUXDEBUGREADER_HPP
73 uint64_t& spectrumIndex,
99 #endif //_DEMUXDEBUGREADER_HPP
~DemuxDebugReader()
Destructor closes the file.
bool IsOpen() const
Should be called after construction to verify that the file was opened successfully.
DemuxDebugReader(const std::string &fileName)
Constructs a DemuxDebugReader to read the debug file with the given filename.
boost::shared_ptr< MatrixType > MatrixPtr
std::vector< std::pair< uint64_t, int64_t > > _fileIndex
Set of pointers to blocks in the file extracted from the header/footer information.
void ReadHeader()
Reads the header/footer which contains information about the number of blocks and their locations in ...
size_t NumBlocks() const
Number of blocks (sets of matrices) that are contained in the file.
A class for reading demux matrices from file.
std::ifstream _reader
Input file stream of the debug file.
size_t _currentBlockIndex
Current block index used for tracking progress through file when sequential iteration of ReadDeconvBl...
void ReadDeconvBlock(uint64_t &spectrumIndex, DemuxTypes::MatrixPtr masks, DemuxTypes::MatrixPtr solution, DemuxTypes::MatrixPtr signal)
Can be used to read through the blocks sequntially.