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
lgrUtil
absoluteTime.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
11
12
#ifndef absoluteTime_H_
13
#define absoluteTime_H_
14
15
#include "
lgrUtil.h
"
16
#include <iosfwd>
17
#include <vlutil/vlString.h>
18
19
namespace
MAKLogger
20
{
21
22
class
DT_DLL_LGRUTIL
DtAbsoluteTime
;
23
28
class
DT_DLL_LGRUTIL
DtRelativeTime
29
{
30
public
:
32
DtRelativeTime
(
double
reltime);
33
35
DtRelativeTime
(
const
DtAbsoluteTime
& time1,
const
DtAbsoluteTime
& time2);
36
38
DtRelativeTime
operator+(
const
DtRelativeTime
& relTime)
const
;
39
41
DtRelativeTime
operator-(
const
DtRelativeTime
& relTime)
const
;
42
44
bool
operator==(
const
DtRelativeTime
&)
const
;
45
bool
operator!=(
const
DtRelativeTime
&)
const
;
46
bool
operator< (
const
DtRelativeTime
&)
const
;
47
bool
operator> (
const
DtRelativeTime
&)
const
;
48
bool
operator<=(
const
DtRelativeTime
&)
const
;
49
bool
operator>=(
const
DtRelativeTime
&)
const
;
50
51
double
hours()
const
;
52
double
minutes()
const
;
53
double
seconds()
const
;
54
56
long
hourPart()
const
;
57
59
long
minutePart()
const
;
60
62
long
secondPart()
const
;
63
65
long
milisecondPart()
const
;
66
68
DtString toString(
int
percision = 0)
const
;
69
73
static
double
parseString(
const
DtString& timeString);
74
75
protected
:
76
double
myTime
;
77
};
78
82
class
DT_DLL_LGRUTIL
DtAbsoluteTime
83
{
84
public
:
87
DtAbsoluteTime
(
double
absTime);
88
90
void
offset(
const
DtRelativeTime
& relTime);
91
94
DtAbsoluteTime
operator+(
const
DtRelativeTime
& relTime)
const
;
96
DtAbsoluteTime
operator-(
const
DtRelativeTime
& relTime)
const
;
98
DtAbsoluteTime
& operator+=(
const
DtRelativeTime
& relTime);
100
DtAbsoluteTime
& operator-=(
const
DtRelativeTime
& relTime);
101
102
DtRelativeTime
operator-(
const
DtAbsoluteTime
& absTime)
const
;
103
105
bool
operator==(
const
DtAbsoluteTime
&)
const
;
106
bool
operator!=(
const
DtAbsoluteTime
&)
const
;
107
bool
operator< (
const
DtAbsoluteTime
&)
const
;
108
bool
operator> (
const
DtAbsoluteTime
&)
const
;
109
bool
operator<=(
const
DtAbsoluteTime
&)
const
;
110
bool
operator>=(
const
DtAbsoluteTime
&)
const
;
111
114
double
hours()
const
;
115
118
double
minutes()
const
;
119
122
double
seconds()
const
;
123
125
long
hourPart()
const
;
126
128
long
minutePart()
const
;
129
131
long
secondPart()
const
;
132
134
long
milisecondPart()
const
;
135
137
DtString toString(
int
percision = 0)
const
;
138
143
static
double
parseString(
const
DtString& timeString);
144
145
protected
:
146
double
myTime
;
147
};
148
149
DT_DLL_LGRUTIL
std::ostream&
operator<<
(std::ostream&,
const
DtAbsoluteTime
&);
150
151
}
152
153
#endif
Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (
www.mak.com
)