MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrTimeInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2024 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef lgrTimeInterface_H_
11 #define lgrTimeInterface_H_
12 
13 #include "lgrSystemInterface.h"
14 
15 namespace MAKLogger
16 {
17  class DtLgrTimeCommandFactory;
18 
22  {
23  public:
24  typedef std::pair<DtAbsoluteTime,DtAbsoluteTime> TimePair;
25 
26  //Used to shorten code.
28 
29  //Used to shorten code.
31 
32  protected:
33 
36 
37  public:
39  virtual ~DtLgrTimeInterface();
40 
42  virtual const DtAbsoluteTime& currentTime() const;
43 
45  virtual const DtAbsoluteTime& startTime() const;
46 
48  virtual const DtAbsoluteTime& stopTime() const;
49 
51  virtual const DtAbsoluteTime& firstTime() const;
52 
54  virtual const DtAbsoluteTime& lastTime() const;
55 
57  virtual bool atStartTime() const;
58 
60  virtual bool atStopTime() const;
61 
63  void currentTimeChanged(DtResponse);
65  void startStopTimesChanged(DtResponse);
67  void firstLastTimesChanged(DtResponse);
68 
74 
75  protected:
77  void connectResponse(DtLgrCommandId,
78  void (DtLgrTimeInterface::*)(DtResponse));
79 
80  protected:
85  };
86 }
87 
88 #endif
DtValueSignal< TimePair > startStopTimesChangedSignal
Definition: lgrTimeInterface.h:71
std::pair< DtAbsoluteTime, DtAbsoluteTime > TimePair
Definition: lgrTimeInterface.h:24
Contains MAKLogger::DtLgrSystemInterface subclass of MAKLogger::DtCommandInterface.
DtAbsoluteTime myFirstTime
Definition: lgrTimeInterface.h:82
DtAbsoluteTime myCurrentTime
Definition: lgrTimeInterface.h:81
DtValueSignal< DtAbsoluteTime > firstTimeChangedSignal
Definition: lgrTimeInterface.h:72
DtLgrTimeInterface ThisClass
Definition: lgrTimeInterface.h:30
DtBoost::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:174
DtValueSignal< DtAbsoluteTime > currentTimeChangedSignal
Response handlers.
Definition: lgrTimeInterface.h:70
DtValueSignal< DtAbsoluteTime > lastTimeChangedSignal
Definition: lgrTimeInterface.h:73
DtLgrTimeCommandFactory Factory
Definition: lgrTimeInterface.h:27
The factory class responsible for created time related commands.
Definition: lgrTimeCommandFactory.h:21
#define DT_DLL_LGRCORE
Definition: lgrCore.h:19
The class responsible for interfacing with the low level logger system functions. ...
Definition: lgrSystemInterface.h:31
DtLogger provides the core system structure and controls the execution model for the underlying objec...
Definition: logger.h:35
TimePair myStartStopTimes
Definition: lgrTimeInterface.h:84
short DtLgrCommandId
Definition: lgrCommand.h:25
DtAbsoluteTime myLastTime
Definition: lgrTimeInterface.h:83
The class for interfacing with the loggers time state.
Definition: lgrTimeInterface.h:21
Absolute Time, a particular measured instance in time, could be thought of as a set of relative times...
Definition: absoluteTime.h:82
Definition: signalSlot.h:163

Document ID: Generated on Thu Oct 3 15:35:11 EDT 2024 from SVN revision 270037
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)