⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 counterthreshold.h

📁 270的linux说明
💻 H
字号:
/*

Copyright (c) 2008, Intel Corporation. 

All rights reserved.

 

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:


    * Redistributions of source code must retain the above copyright notice, 
this list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above copyright notice, 
this list of conditions and the following disclaimer in the documentation and/or 
other materials provided with the distribution.

    * Neither the name of Intel Corporation nor the names of its contributors 
may be used to endorse or promote products derived from this software without 
specific prior written permission.

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

*///==============================================================================// CounterThreshold.h : Definition of the CounterThreshold classes//==============================================================================#ifndef _CLIENT_COUNTERTHRESHOLD_H#define _CLIENT_COUNTERTHRESHOLD_H#include "../Base/base_Threshold.h"using namespace Intel::Mobile::BaseAPI;//==============================================================================namespace Intel {	namespace Mobile 	{		namespace ThresholdAPI		{			// Class: CounterThreshold			class CounterThreshold : public Intel::Mobile::BaseAPI::Threshold			{			public:				CounterThreshold();				virtual ~CounterThreshold();				bool GetNotify() const;				bool SetNotify( bool bNotify );			};			//++++++++++++++++++++++++++++++++++++++++++++++++++++			//  			//  Class ByteCounterThreshold			//			//++++++++++++++++++++++++++++++++++++++++++++++++++++			class ByteCounterThreshold : public CounterThreshold			{			public:				ByteCounterThreshold();				virtual bool   SetObservedProperty( const Intel::Mobile::BaseAPI::ByteProperty& observedProperty );				unsigned char GetThreshold() const;				bool          SetThreshold( unsigned char threshold );				unsigned char GetOffset   () const;				bool          SetOffset   ( unsigned char offset );			};			//++++++++++++++++++++++++++++++++++++++++++++++++++++			//  			//  Class IntCounterThreshold			//			//++++++++++++++++++++++++++++++++++++++++++++++++++++			class IntCounterThreshold : public CounterThreshold			{			public:				IntCounterThreshold();				virtual bool   SetObservedProperty( const Intel::Mobile::BaseAPI::IntProperty& observedProperty );				__int32     GetThreshold() const;				bool    SetThreshold( __int32 threshold );				__int32     GetOffset   () const;				bool    SetOffset   ( __int32 offset );			};			//++++++++++++++++++++++++++++++++++++++++++++++++++++			//  			//  Class UIntCounterThreshold			//			//++++++++++++++++++++++++++++++++++++++++++++++++++++			class UIntCounterThreshold : public CounterThreshold			{			public:				UIntCounterThreshold();				virtual bool   SetObservedProperty( const Intel::Mobile::BaseAPI::UIntProperty& observedProperty );				unsigned __int32 GetThreshold() const;				bool         SetThreshold( unsigned __int32 threshold );				unsigned __int32 GetOffset   () const;				bool         SetOffset   ( unsigned __int32 offset );			};			//++++++++++++++++++++++++++++++++++++++++++++++++++++			//  			//  Class Int64CounterThreshold			//			//++++++++++++++++++++++++++++++++++++++++++++++++++++			class Int64CounterThreshold : public CounterThreshold			{			public:				Int64CounterThreshold();				virtual bool   SetObservedProperty( const Intel::Mobile::BaseAPI::Int64Property& observedProperty );				__int64  GetThreshold() const;				bool     SetThreshold( __int64 threshold );				__int64  GetOffset   () const;				bool     SetOffset   ( __int64 offset );			};			//++++++++++++++++++++++++++++++++++++++++++++++++++++			//  			//  Class UInt64CounterThreshold			//			//++++++++++++++++++++++++++++++++++++++++++++++++++++			class UInt64CounterThreshold : public CounterThreshold			{			public:				UInt64CounterThreshold();				virtual bool   SetObservedProperty( const Intel::Mobile::BaseAPI::UInt64Property& observedProperty );				unsigned __int64 GetThreshold() const;				bool             SetThreshold( unsigned __int64 threshold );				unsigned __int64 GetOffset   () const;				bool             SetOffset   ( unsigned __int64 offset );			};			//++++++++++++++++++++++++++++++++++++++++++++++++++++			//  			//  Class DateCounterThreshold			//			//++++++++++++++++++++++++++++++++++++++++++++++++++++			class DateCounterThreshold : public CounterThreshold			{			public:				DateCounterThreshold();				virtual bool   SetObservedProperty( const Intel::Mobile::BaseAPI::DateTimeProperty& observedProperty );				DATE    GetThreshold() const;				bool    SetThreshold( DATE threshold );				DATE    GetOffset   () const;				bool    SetOffset   ( DATE offset );			};		}	}}//==============================================================================#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -