This commit is contained in:
Matthias
2017-07-24 16:27:50 +02:00
parent ec80b339e2
commit 3d4bb80dae
46 changed files with 1388 additions and 158 deletions
@@ -0,0 +1,45 @@
#pragma once
#include <string>
#include <fstream>
#include <memory>
#include <set>
namespace wfr {
namespace wep {
// Forward declarations
class WorkflowExecutionPlan;
class AbstractWepNode;
// main namespace
namespace utils {
class WepProgressionWriter {
// Invariant properties that can be accessed directly.
public:
const std::shared_ptr<WorkflowExecutionPlan> wep;
const std::string workflowName;
private:
std::ofstream outfile;
int64_t epoch = 0;
public:
WepProgressionWriter(const std::shared_ptr<WorkflowExecutionPlan>& wep) noexcept;
void openFile(const std::string filename = std::string());
void writeProgressToFile();
void closeFile();
};
} /* namespace utils */
} /* namespace wep */
} /* namespace wfr */