~awuerl/blitzortung-tracker/0.9

« back to all changes in this revision

Viewing changes to source/lib/Process.h

  • Committer: Andreas Wuerl
  • Date: 2012-03-08 22:02:31 UTC
  • Revision ID: andi@debian-20120308220231-8dc444kpv5b4s72p
backported most of the 1.0 features

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include "Queue.h"
8
8
#include "output/Base.h"
9
9
#include "network/transfer/Base.h"
10
 
#include "DataThread.h"
 
10
#include "DataWorker.h"
11
11
 
12
12
#include "data/Event.h"
13
13
 
21
21
      typedef std::auto_ptr<Process> AP;
22
22
 
23
23
    private:
 
24
 
 
25
      //! time when process object was created
 
26
      const pt::ptime startTime_;
 
27
 
24
28
      //! queue for data transfer from measurement thread
25
29
      Queue<data::Event> eventQueue_;
26
30
 
31
35
      const output::Base& output_;
32
36
 
33
37
      //! ring buffer for data rate limiter
34
 
      DataThread::EventCountBuffer eventCountBuffer_;
 
38
      DataWorker::EventCountBuffer eventCountBuffer_;
35
39
 
36
40
      //! lower limit of amplitude
37
41
      double amplitudeLimit_;
50
54
      void push(data::Event::AP);
51
55
 
52
56
      //! get reference to event count buffer
53
 
      const DataThread::EventCountBuffer& getEventCountBuffer() const;
 
57
      const DataWorker::EventCountBuffer& getEventCountBuffer() const;
54
58
      
55
59
      //! get reference to transfer object
56
60
      const network::transfer::Base& getTransfer() const;
61
65
      //! set amplitude limit
62
66
      void setAmplitudeLimit(double amplitudeLimit);
63
67
 
 
68
      //! get start time of process object
 
69
      const pt::ptime& getStartTime() const;
 
70
 
 
71
      //! get uptime of process object
 
72
      const pt::time_duration getUptime() const;
64
73
  };
65
74
}
66
75