MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrCommandThread.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2016 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <lgrCore/lgrCore.h>
12 #include <lgrCore/lgrDriver.h>
13 
14 #include <vlutil/vlRunnable.h>
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlTime.h>
17 
18 namespace MAKLogger
19 {
20 
27  {
28  public:
33  DtLgrCommandThread(DtLgrCommandHandler* commandHandler, const DtString& nameOfOperation,
34  int frameRateValue=-1);
35 
37  virtual ~DtLgrCommandThread();
38 
40  virtual void run();
41 
43  virtual void commandOperation() = 0;
44 
46  virtual const DtString& operationName() const;
47 
49 
50  virtual int frameRate() const;
51  virtual void setFrameRate(int rate);
53 
55  virtual double timeSlice() const;
56 
59  virtual DtTime startTime();
60 
64  virtual DtTime sleepRemainingTime(DtTime startTime=-1.0);
65 
66  protected:
67 
70 
72  DtString myOperationName;
73 
75  DtClock myClock;
76 
78  DtTime myStartTime;
79 
83  double myTimeSlice;
84 
85  };
86 
87 
88 }
89 

Document ID: Generated on Tue Aug 1 09:00:26 EDT 2017 from SVN revision 179128
Copyright © 2017 VT MÄK. All Rights Reserved (www.mak.com)