00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __RECORDER_H
00022 #define __RECORDER_H
00023
00024 #include <qmutex.h>
00025 #include <qfile.h>
00026 #include <qtextstream.h>
00027 #include <qwaitcondition.h>
00028
00029 #ifdef __GEDDEI_BUILD
00030 #include "qfastwaitcondition.h"
00031 #include "processor.h"
00032 #else
00033 #include <qtextra/qfastwaitcondition.h>
00034 #include <geddei/processor.h>
00035 #endif
00036
00058 class Recorder: public Processor
00059 {
00060 virtual void processor();
00061 virtual PropertiesInfo specifyProperties() const;
00062 virtual const bool verifyAndSpecifyTypes(const SignalTypeRefs &, SignalTypeRefs &);
00063 virtual void initFromProperties(const Properties &p);
00064 virtual void receivedPlunger();
00065
00066
00067 QFile theOutput;
00068 QTextStream stream;
00069 QString theFieldDelimiter, theRecordDelimiter;
00070 bool thePrintSection, thePrintSample, thePrintTime;
00071 uint thePadBefore, thePadAfter;
00072
00073
00074 uint theCurrentSample, theCurrentSection;
00075 public:
00079 Recorder() : Processor("Recorder", NotMulti, Guarded) {}
00080 };
00081
00082 #endif