MAK Data Logger API Documentation for HLA
 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 
73 
75  DtClock myClock;
76 
78  DtTime myStartTime;
79 
83  double myTimeSlice;
84 
85  };
86 
87 
88 }
89 
DtClock myClock
Timer to help control processing.
Definition: lgrCommandThread.h:75
DtString myOperationName
Name of this operation.
Definition: lgrCommandThread.h:72
This class provides the base interface for DtLgrCommandHandler.
Definition: lgrDriver.h:35
DtBoost::shared_ptr< DtCommandDispatcher > DtCommandDispatcherSP
Definition: lgrCommandDispatcher.h:101
/brief Base class for defining command operations that run in a separate thread.
Definition: lgrCommandThread.h:26
DtCommandDispatcherSP myDispatcher
Used to dispatch the FinishCommandThread and any others that are needed.
Definition: lgrCommandThread.h:69
double myTimeSlice
1/frameRate provides time slice available for each processing cycle.
Definition: lgrCommandThread.h:83
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
Contains MAKLogger::DtLgrCommandHandler class.
DtTime myStartTime
Holds the start time for a processing cycle.
Definition: lgrCommandThread.h:78
Contains lgrCore library definitions.

Document ID: Generated on Mon Mar 22 15:30:17 EDT 2021 from SVN revision 226440
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)