/** * @file SRawBufferFiller.cpp * @author Nick Ryder & Dan Saunders, on behalf of the SoLid collaboration. * @date 18 Aug 2016 */ #include "SRawBufferFiller.h" //============================================================================== //! TODO SRawBufferFiller::SRawBufferFiller(SDetector * dtr, SClipboard * cb) : ISAlgorithm(dtr, cb, "SRawBufferFiller"), m_buf(NULL) {} //============================================================================== //! TODO void SRawBufferFiller::initialize() { // Initially assume a single input binary file int nfiles = cb()->inputDataFileNames()->size(); if (nfiles != 1) { // There must be a better way to log errors std::cout << "[Warning]: only one file must be defined (" << nfiles << ")." << std::endl; } std::string fn = cb()->inputDataFileNames()->at(0); m_buf = cb()->rawBuffer(); m_buf->open(inFile, fn); } //============================================================================== //! TODO void SRawBufferFiller::execute() { // Load more data if needed // If input finsihed and buffer all used then flag end of running. //std::cout<<"Hello world, from SRawBufferFiller"<rawBuffer()->msg<