update esppilight lib
content of the library is not filtered on 433mhz only
This commit is contained in:
1 parent
a275e48ee1
commit
67dd7ac078
1030 files changed
+203335
-116
No files matched your search
@@ -0,0 +1,88 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// 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
|
||||
{
|
||||
/** \brief Windows implementation of a timestamp.
|
||||
*/
|
||||
class TimeStampImpl
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Constructor.
|
||||
* Creates a TimeStampImpl object.
|
||||
*/
|
||||
TimeStampImpl();
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
* Destroys the TimeStampImpl object.
|
||||
*/
|
||||
~TimeStampImpl();
|
||||
|
||||
/**
|
||||
* SetTime. Sets the timestamp to now, plus the offset in milliseconds.
|
||||
* \param _milliseconds positive or negative offset from
|
||||
* now in milliseconds.
|
||||
*/
|
||||
void SetTime( int32 _milliseconds );
|
||||
|
||||
/**
|
||||
* TimeRemaining. Gets the difference between now and the timestamp
|
||||
* time in milliseconds.
|
||||
* \return milliseconds remaining until we reach the timestamp. The
|
||||
* return value is negative if the timestamp is in the past.
|
||||
*/
|
||||
int32 TimeRemaining();
|
||||
|
||||
/**
|
||||
* Return as as string
|
||||
*/
|
||||
string GetAsString();
|
||||
|
||||
/**
|
||||
* Overload the subtract operator to get the difference between
|
||||
* two timestamps in milliseconds.
|
||||
*/
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user