OpenZWave Library 1.2
TimeStampImpl.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2//
3// TimeStampImpl.h
4//
5// Windows implementation of a 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 _TimeStampImpl_H
29#define _TimeStampImpl_H
30
31#include "Defs.h"
32
33namespace OpenZWave
34{
38 {
39 public:
45
51
57 void SetTime( int32 _milliseconds );
58
66
70 string GetAsString();
71
76 int32 operator- ( TimeStampImpl const& _other );
77
78 private:
79 TimeStampImpl( TimeStampImpl const& ); // prevent copy
80 TimeStampImpl& operator = ( TimeStampImpl const& ); // prevent assignment
81
82 int64 m_stamp;
83 };
84
85} // namespace OpenZWave
86
87#endif //_TimeStampImpl_H
88
signed int int32
Definition: Defs.h:68
Windows implementation of a timestamp.
Definition: TimeStampImpl.h:38
int32 operator-(TimeStampImpl const &_other)
Definition: TimeStampImpl.cpp:109
int32 TimeRemaining()
Definition: TimeStampImpl.cpp:76
~TimeStampImpl()
Definition: TimeStampImpl.cpp:51
TimeStampImpl()
Definition: TimeStampImpl.cpp:40
string GetAsString()
Definition: TimeStampImpl.cpp:90
void SetTime(int32 _milliseconds)
Definition: TimeStampImpl.cpp:61
Definition: Bitfield.h:35