MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrCore
lgrTimeInterface.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
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
21
class
DT_DLL_LGRCORE
DtLgrTimeInterface
:
public
virtual
DtLgrSystemInterface
22
{
23
public
:
24
typedef
std::pair<DtAbsoluteTime,DtAbsoluteTime>
TimePair
;
25
26
//Used to shorten code.
27
typedef
DtLgrTimeCommandFactory
Factory
;
28
29
//Used to shorten code.
30
typedef
DtLgrTimeInterface
ThisClass
;
31
32
protected
:
33
35
DtLgrTimeInterface
(
DtLogger
& logger);
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
70
DtValueSignal<DtAbsoluteTime>
currentTimeChangedSignal
;
71
DtValueSignal<TimePair>
startStopTimesChangedSignal
;
72
DtValueSignal<DtAbsoluteTime>
firstTimeChangedSignal
;
73
DtValueSignal<DtAbsoluteTime>
lastTimeChangedSignal
;
74
75
protected
:
77
void
connectResponse(
DtLgrCommandId
,
78
void
(
DtLgrTimeInterface
::*)(
DtResponse
));
79
80
protected
:
81
DtAbsoluteTime
myCurrentTime
;
82
DtAbsoluteTime
myFirstTime
;
83
DtAbsoluteTime
myLastTime
;
84
TimePair
myStartStopTimes
;
85
};
86
}
87
88
#endif
Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (
www.mak.com
)