Commit 86ba153e authored by Markus Mirz's avatar Markus Mirz
Browse files

remove constructor from data logger

parent 10bfdbde
...@@ -38,7 +38,6 @@ namespace DPsim { ...@@ -38,7 +38,6 @@ namespace DPsim {
std::ofstream mLogFile; std::ofstream mLogFile;
Bool mEnabled; Bool mEnabled;
std::map<String, CPS::AttributeBase::Ptr> mAttributes; std::map<String, CPS::AttributeBase::Ptr> mAttributes;
void logDataLine(Real time, Real data); void logDataLine(Real time, Real data);
...@@ -48,7 +47,6 @@ namespace DPsim { ...@@ -48,7 +47,6 @@ namespace DPsim {
public: public:
using Ptr = std::shared_ptr<DataLogger>; using Ptr = std::shared_ptr<DataLogger>;
DataLogger(Bool enabled = true);
DataLogger(String name, Bool enabled = true); DataLogger(String name, Bool enabled = true);
~DataLogger(); ~DataLogger();
......
...@@ -27,12 +27,6 @@ namespace fs = std::experimental::filesystem; ...@@ -27,12 +27,6 @@ namespace fs = std::experimental::filesystem;
using namespace DPsim; using namespace DPsim;
DataLogger::DataLogger(Bool enabled) :
mLogFile(),
mEnabled(enabled) {
mLogFile.setstate(std::ios_base::badbit);
}
DataLogger::DataLogger(String name, Bool enabled) : DataLogger::DataLogger(String name, Bool enabled) :
mEnabled(enabled) { mEnabled(enabled) {
if (!mEnabled) if (!mEnabled)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment