// ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL // Eric Aubourg // Christophe Magneville // Reza Ansari // $Id: asciitoiwtr.cc,v 1.7 2001-11-08 15:47:44 aubourg Exp $ #include "asciitoiwtr.h" #include "toimanager.h" ASCIITOIWriter::ASCIITOIWriter(string fn) : fname(fn), s(fn.c_str()) { name = "ascii writer"; outFlags = false; } ASCIITOIWriter::~ASCIITOIWriter() {} void ASCIITOIWriter::setOutFlags(bool yn) { outFlags = yn; } void ASCIITOIWriter::addInput(string name, TOI* toi) { declareInput(name); fwinputs.push_back(toi); toi->addConsumer(this); } void ASCIITOIWriter::run() { cout << "asciitoiwriter running" << endl; // init done here delete[] inTOIs; inTOIs = new (TOI*[fwinputs.size()]); for (int i=0; i