OpenZWave Library
1.2
cpp
src
platform
TimeStamp.h
Go to the documentation of this file.
1
//-----------------------------------------------------------------------------
2
//
3
// TimeStamp.h
4
//
5
// Cross-platform TimeStamp
6
//
7
// Copyright (c) 2010 Mal Lansell <mal@lansell.org>
8
// All rights reserved.
9
//
10
// SOFTWARE NOTICE AND LICENSE
11
//
12
// This file is part of OpenZWave.
13
//
14
// OpenZWave is free software: you can redistribute it and/or modify
15
// it under the terms of the GNU Lesser General Public License as published
16
// by the Free Software Foundation, either version 3 of the License,
17
// or (at your option) any later version.
18
//
19
// OpenZWave is distributed in the hope that it will be useful,
20
// but WITHOUT ANY WARRANTY; without even the implied warranty of
21
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
// GNU Lesser General Public License for more details.
23
//
24
// You should have received a copy of the GNU Lesser General Public License
25
// along with OpenZWave. If not, see <http://www.gnu.org/licenses/>.
26
//
27
//-----------------------------------------------------------------------------
28
#ifndef _TimeStamp_H
29
#define _TimeStamp_H
30
31
#include "
Defs.h
"
32
33
namespace
OpenZWave
34
{
35
class
TimeStampImpl;
36
39
class
OPENZWAVE_EXPORT
TimeStamp
40
{
41
public
:
46
TimeStamp
();
47
52
~
TimeStamp
();
53
59
void
SetTime(
int32
_milliseconds = 0 );
60
67
int32
TimeRemaining();
68
73
string
GetAsString();
74
79
int32
operator- (
TimeStamp
const
& _other );
80
81
private
:
82
TimeStamp
(
TimeStamp
const
& );
// prevent copy
83
TimeStamp
& operator = (
TimeStamp
const
& );
// prevent assignment
84
85
TimeStampImpl
* m_pImpl;
// Pointer to an object that encapsulates the platform-specific implementation of the TimeStamp.
86
};
87
88
}
// namespace OpenZWave
89
90
#endif //_TimeStamp_H
91
OpenZWave::TimeStampImpl
Windows implementation of a timestamp.
Definition:
TimeStampImpl.h:37
OpenZWave::TimeStamp
Implements a platform-independent TimeStamp.
Definition:
TimeStamp.h:39
int32
signed int int32
Definition:
Defs.h:68
OPENZWAVE_EXPORT
#define OPENZWAVE_EXPORT
Definition:
Defs.h:51
Defs.h
OpenZWave
Definition:
Bitfield.h:34
Generated on Thu Feb 13 2020 23:40:54 for OpenZWave Library by
1.8.17