From 9040b187a1c4fa380f8a12207b9dd6d04b3a10ac Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 12 Aug 2016 18:00:49 +0200 Subject: all: rename modules s#^opentrack-##. and opentrack -> api Adjust usages. --- opentrack-logic/tracklogger.cpp | 47 ----------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 opentrack-logic/tracklogger.cpp (limited to 'opentrack-logic/tracklogger.cpp') diff --git a/opentrack-logic/tracklogger.cpp b/opentrack-logic/tracklogger.cpp deleted file mode 100644 index 64dda579..00000000 --- a/opentrack-logic/tracklogger.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include "tracklogger.hpp" -#include "tracker.h" - -TrackLogger::~TrackLogger() {} - -void TrackLogger::reset_dt() -{ - t.start(); -} - -void TrackLogger::write_dt() -{ - const double dt = t.elapsed_seconds(); - write(&dt, 1); -} - -void TrackLoggerCSV::handle_first_col_sep() -{ - if (!first_col) - out.put(','); - first_col = false; -} - -void TrackLoggerCSV::write(const char *s) -{ - handle_first_col_sep(); - out << s; -} - - -void TrackLoggerCSV::write(const double *p, int n) -{ - handle_first_col_sep(); - for (int i = 0; i < n-1; ++i) - { - out << p[i]; - out.put(','); - } - out << p[n-1]; -} - -void TrackLoggerCSV::next_line() -{ - out << std::endl; - first_col = true; -} - -- cgit v1.2.3