20 #ifndef _DEMUXDEBUGWRITER_HPP 21 #define _DEMUXDEBUGWRITER_HPP 74 #endif //_DEMUXDEBUGWRITER_HPP
std::ofstream _writer
Output file stream.
boost::shared_ptr< MatrixType > MatrixPtr
bool IsOpen() const
Should be called after construction to verify that the file was opened successfully.
void WriteIndex()
Writes the file index at the end of the file.
A class for writing demux matrices to 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.
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.
~DemuxDebugWriter()
Destructor writes header and closes the file.
std::vector< std::pair< uint64_t, int64_t > > _fileIndex
Set of spectrum indices and filepointers to their respective blocks.