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