diff options
author | DaMichel <mw.pub@welter-4d.de> | 2016-07-29 16:32:54 +0200 |
---|---|---|
committer | DaMichel <mw.pub@welter-4d.de> | 2016-07-29 16:32:54 +0200 |
commit | 12d2080865958cc07d37dddd28240f40423fb292 (patch) | |
tree | 240a7e71221279206ae1618e86cb66770913547a /opentrack-logic/tracklogger.hpp | |
parent | 884b3f013045d60d586c55338a76feb4dfa30c9b (diff) |
logger: it is definitely nicer to not have things all over the place
Diffstat (limited to 'opentrack-logic/tracklogger.hpp')
-rw-r--r-- | opentrack-logic/tracklogger.hpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/opentrack-logic/tracklogger.hpp b/opentrack-logic/tracklogger.hpp index 99bc71b0..65128d48 100644 --- a/opentrack-logic/tracklogger.hpp +++ b/opentrack-logic/tracklogger.hpp @@ -14,8 +14,6 @@ public: { } - static mem<TrackLogger> make() { return std::make_shared<TrackLogger>(); } - virtual void write(const char *) { } @@ -45,12 +43,9 @@ public: first_col(true) { out.open(filename.toStdString()); - if (!out.is_open()) - throw std::ios_base::failure("unable to open file"); } - static mem<TrackLogger> make(const main_settings &s) { return std::static_pointer_cast<TrackLogger>(std::make_shared<TrackLoggerCSV>(s.tracklogging_filename)); } - + bool is_open() const { return out.is_open(); } virtual void write(const char *s); virtual void write(const double *p, int n); virtual void next_line(); |