Extreme cleanup, see src/obsolete for details
This commit is contained in:
parent
7f04d616e6
commit
6d8e3a6504
141 changed files with 3937 additions and 1815 deletions
37
eo/src/utils/eoStdoutMonitor.cpp
Normal file
37
eo/src/utils/eoStdoutMonitor.cpp
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <utils/eoStdoutMonitor.h>
|
||||
#include <utils/compatibility.h>
|
||||
#include <utils/eoParam.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
eoMonitor& eoStdoutMonitor::operator()(void)
|
||||
{
|
||||
if (firsttime)
|
||||
{
|
||||
cout << "First Generation" << endl;
|
||||
|
||||
firsttime = false;
|
||||
|
||||
}
|
||||
// ok, now the real saving. write out
|
||||
|
||||
if (!cout)
|
||||
{
|
||||
string str = "eoStdoutMonitor: Could not write to cout";
|
||||
throw runtime_error(str);
|
||||
}
|
||||
|
||||
for(iterator it = vec.begin(); it != vec.end(); ++it)
|
||||
{
|
||||
cout << (*it)->longName() << ": " << (*it)->getValue() << '\n';
|
||||
}
|
||||
|
||||
cout << "\n****** End of Generation ******\n\n";
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in a new issue