openEMS/FDTD/processing.cpp

25 lines
349 B
C++
Raw Normal View History

#include "processing.h"
Processing::Processing(Operator* op, Engine* eng)
{
Op=op;
Eng=eng;
}
Processing::~Processing()
{
file.close();
}
void Processing::OpenFile(string outfile)
{
if (file.is_open()) file.close();
file.open(outfile.c_str());
if (file.is_open()==false)
{
cerr << "Can't open file: " << outfile << endl;
return;
}
}