|
@@ -41,13 +41,14 @@ public:
|
|
|
virtual ~Output()
|
|
|
{ }
|
|
|
|
|
|
- void operator()() const
|
|
|
+ void operator()(const std::string& path = "") const
|
|
|
{
|
|
|
const typename Observer < U, V >::Views& views = _observer.views();
|
|
|
|
|
|
for (typename Observer < U, V >::Views::const_iterator it =
|
|
|
views.begin(); it != views.end(); ++it) {
|
|
|
- std::ofstream o((boost::format("%1%.csv") % it->first).str());
|
|
|
+ std::ofstream o((boost::format("%1%/%2%.csv") % path %
|
|
|
+ it->first).str());
|
|
|
typename View < U, V >::Values values = it->second->values();
|
|
|
double begin = it->second->begin();
|
|
|
double end = it->second->end();
|