~vbursian/research-assistant/intervers

« back to all changes in this revision

Viewing changes to RAPlugins/BasicDevices/PeriodicGageRecorder.h

  • Committer: Viktor Bursian
  • Date: 2013-06-06 15:10:08 UTC
  • Revision ID: vbursian@gmail.com-20130606151008-6641eh62f0lgx8jt
Tags: version_0.3.0
version 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
////////////////////////////////////////////////////////////////////////////////
2
 
/*! @file PeriodicGageRecorder.h   Эмулятор прибора, пишущего релаксационный процесс.
3
 
- Part of AbstractDevices - Research Assistant Plugin package.
 
2
/*! @file PeriodicGageRecorder.h   Самописец.
 
3
- Part of BasicDevices - Research Assistant Plugin package.
4
4
- Uses  RAGUI - Research Assistant Graphical User Interface.
5
5
- Uses  QtGui v.4.6  -  http://qt.nokia.com/
6
6
- Uses  RANet - Research Assistant Net Library (based on ANSI C++).
10
10
#ifndef PeriodicGageRecorder_H
11
11
#define PeriodicGageRecorder_H
12
12
#include "ProtoScanner.h"
 
13
#include "PairSetFunction.h"
13
14
#include "PeriodicGage.h"
14
15
namespace RA {
15
16
//------------------------------------------------------------------------------
17
18
ANNOUNCE_CLASS(sPeriodicGageRecorder)
18
19
 
19
20
//---------------------------------------------------- sPeriodicGageRecorder ---
20
 
/*! Эмулятор прибора, пишущего релаксационный процесс.
 
21
/*! Самописец.
21
22
*/
22
23
class BasicDevices_EXPORT  sPeriodicGageRecorder : public sProtoScanner
23
24
{
25
26
  CONSOLE(sPeriodicGageRecorder)
26
27
  public:
27
28
    virtual                   ~sPeriodicGageRecorder ();
 
29
    virtual void              RestoreState ();
 
30
    virtual void              StoreState ();
28
31
 
29
32
  public slots:
30
33
    virtual void              Connect ();
31
34
 
32
 
  private slots:
33
 
    void                      EnterStandby ();
34
 
    void                      ReportError ();
35
 
    void                      OnStartScan ();
36
 
    void                      OnFinishScan ();
37
 
 
38
35
  protected slots:
 
36
    virtual void              StartScan ();
 
37
    virtual void              FinishScan ();
 
38
    virtual void              EnterStandby ();
 
39
    virtual void              ReportError ();
39
40
    virtual void              AddNewData (sPhysValue  Data);
40
41
 
41
42
  protected: //fields
42
43
    sPeriodicGage::sPtr       Gage;
 
44
    sPhysRange                ValidScanRange;
 
45
    sPhysRange                ValidScanSteps;
 
46
    sPhysRange                ScanRange;
 
47
    sPhysValue                ScanStep;
 
48
    sPhysValue                Speed;
 
49
    sPairSetFunction::sPtr    PairSetFunction;
43
50
    int                       CurrentPointNo;
44
51
 
 
52
  protected: //fields
 
53
    psPhysRangeField          ScanRangeField;
 
54
    psPhysValueField          ScanStepField;
 
55
//    psPhysValueField          SpeedField;
 
56
 
45
57
  private: //fields
 
58
    sPhysValue                ArbFrom;
 
59
    sPhysValue                ArbStep;
 
60
    sPhysValue                NumOfPointsEvaluation;
46
61
};
47
62
 
48
63
//------------------------------------------------------------------------------