Rev 239 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 239 | Rev 240 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 | ***************************************************************************/ |
19 | ***************************************************************************/ |
Line 20... | Line 20... | ||
20 | 20 | ||
Line 21... | Line 21... | ||
21 | #include "Logger.h" |
21 | #include "Logger.h" |
22 | 22 | ||
23 | Logger::Logger(cSettings * settings) |
23 | Logger::Logger(cSettings * settings, sMode * mode) |
24 | { |
24 | { |
25 | csv = new CSVLogger(settings); |
25 | csv = new CSVLogger(settings, mode); |
26 | logger << csv; |
26 | logger << csv; |
Line 27... | Line 27... | ||
27 | active = false; |
27 | active = false; |
Line 39... | Line 39... | ||
39 | foreach (DefaultLogger * log, logger) |
39 | foreach (DefaultLogger * log, logger) |
40 | if (log->ready()) |
40 | if (log->ready()) |
41 | log->write(analogData); |
41 | log->write(analogData); |
42 | } |
42 | } |
Line 43... | Line -... | ||
43 | - | ||
44 | //erzeuge neue Log-Datei/neuen Datensatz |
- | |
45 | void Logger::newLog(QString name) |
- | |
46 | { |
- | |
47 | foreach (DefaultLogger * log, logger) |
- | |
48 | log->newLog(name); |
- | |
49 | } |
- | |
50 | 43 | ||
51 | //starte Logging |
44 | //starte Logging |
52 | void Logger::start_Log() |
45 | void Logger::start_Log() |
53 | { |
46 | { |
- | 47 | active = true; |
|
- | 48 | foreach (DefaultLogger * log, logger) |
|
54 | active = true; |
49 | log->newLog(); |
Line 55... | Line 50... | ||
55 | } |
50 | } |
56 | 51 | ||
57 | //soll geloggt werden? |
52 | //soll geloggt werden? |