20#ifndef _DEMUXDEBUGWRITER_HPP
21#define _DEMUXDEBUGWRITER_HPP
A class for writing demux matrices to file.
void WriteHeader()
Writes the the header. The header is simply a pointer to the footer (fileIndex).
DemuxDebugWriter(const std::string &fileName)
Constructs a DemuxDebugWriter to write the debug file with the given filename.
std::ofstream _writer
Output file stream.
void WriteIndex()
Writes the file index at the end of the file.
bool IsOpen() const
Should be called after construction to verify that the file was opened successfully.
~DemuxDebugWriter()
Destructor writes header and closes the file.
void WriteDeconvBlock(uint64_t spectrumIndex, DemuxTypes::MatrixPtr masks, DemuxTypes::MatrixPtr solution, DemuxTypes::MatrixPtr signal)
Writes a set of matrices with the given spectrum index to file.
std::vector< std::pair< uint64_t, int64_t > > _fileIndex
Set of spectrum indices and filepointers to their respective blocks.
boost::shared_ptr< MatrixType > MatrixPtr