TimeStamp.h
Go to the documentation of this file.
//-----------------------------------------------------------------------------
//
// TimeStamp.h
//
// Cross-platform 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 _TimeStamp_H
#define _TimeStamp_H
#include "Defs.h"
namespace OpenZWave
{
class TimeStampImpl;
class OPENZWAVE_EXPORT TimeStamp
{
public:
TimeStamp();
~TimeStamp();
void SetTime( int32 _milliseconds = 0 );
int32 TimeRemaining();
string GetAsString();
int32 operator- ( TimeStamp const& _other );
private:
TimeStamp( TimeStamp const& ); // prevent copy
TimeStamp& operator = ( TimeStamp const& ); // prevent assignment
TimeStampImpl* m_pImpl; // Pointer to an object that encapsulates the platform-specific implementation of the TimeStamp.
};
} // namespace OpenZWave
#endif //_TimeStamp_H
OpenZWave
Definition: Bitfield.h:34
OPENZWAVE_EXPORT
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
Defs.h
int32
signed int int32
Definition: Defs.h:79
OpenZWave::TimeStampImpl
Windows implementation of a timestamp.
Definition: windows/TimeStampImpl.h:37
OpenZWave::TimeStamp
Implements a platform-independent TimeStamp.
Definition: TimeStamp.h:39