windows/TimeStampImpl.h
Go to the documentation of this file.
//-----------------------------------------------------------------------------
//
// TimeStampImpl.h
//
// Windows implementation of a TimeStamp
//
// Copyright (c) 2010 Mal Lansell <mal@lansell.org>
// All rights reserved.
//
// SOFTWARE NOTICE AND LICENSE
//
// This file is part of OpenZWave.
//
// OpenZWave is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
// OpenZWave is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenZWave. If not, see <http://www.gnu.org/licenses/>.
//
//-----------------------------------------------------------------------------
#ifndef _TimeStampImpl_H
#define _TimeStampImpl_H
#include "Defs.h"
namespace OpenZWave
{
class TimeStampImpl
{
public:
TimeStampImpl();
~TimeStampImpl();
void SetTime( int32 _milliseconds );
int32 TimeRemaining();
string GetAsString();
int32 operator- ( TimeStampImpl const& _other );
private:
TimeStampImpl( TimeStampImpl const& ); // prevent copy
TimeStampImpl& operator = ( TimeStampImpl const& ); // prevent assignment
int64 m_stamp;
};
} // namespace OpenZWave
#endif //_TimeStampImpl_H
OpenZWave::TimeStampImpl::operator-
int32 operator-(TimeStampImpl const &_other)
Definition: windows/TimeStampImpl.cpp:109
OpenZWave
Definition: Bitfield.h:34
OpenZWave::TimeStampImpl::GetAsString
string GetAsString()
Definition: windows/TimeStampImpl.cpp:90
OpenZWave::TimeStampImpl::SetTime
void SetTime(int32 _milliseconds)
Definition: windows/TimeStampImpl.cpp:61
Defs.h
OpenZWave::TimeStampImpl::TimeRemaining
int32 TimeRemaining()
Definition: windows/TimeStampImpl.cpp:76
int32
signed int int32
Definition: Defs.h:79
OpenZWave::TimeStampImpl
Windows implementation of a timestamp.
Definition: windows/TimeStampImpl.h:37
OpenZWave::TimeStampImpl::TimeStampImpl
TimeStampImpl()
Definition: windows/TimeStampImpl.cpp:40
OpenZWave::TimeStampImpl::~TimeStampImpl
~TimeStampImpl()
Definition: windows/TimeStampImpl.cpp:51