📄 gaugethreshold_impl.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.
*///==============================================================================// GaugeThreshold_Impl.h : Definition of the class GaugeThresholdImpl//==============================================================================// //==============================================================================#ifndef _CLIENT_GAUGETHRESHOLD_IMPL_H#define _CLIENT_GAUGETHRESHOLD_IMPL_H#include "../Base/base_Threshold_Impl.h"//==============================================================================// Class: GaugeThresholdImplclass GaugeThresholdImpl : public ThresholdImpl{public: GaugeThresholdImpl( Object* pOwner, IntelMobileChar* sType = IntelMobileText("GaugeThreshold") ); virtual ~GaugeThresholdImpl(); bool GetNotifyHigh(); bool GetNotifyLow (); bool SetNotifyHigh( bool notifyHigh ); bool SetNotifyLow ( bool notifyLow ); /* bool AddObserver ( ObserverImpl& observer ); bool RemoveObserver ( ObserverImpl& observer ); bool RemoveObservers ( ); bool SetObserverEvent ( ); */protected: virtual void* GetInterface() = 0;private: Event::EventType GetDistinctEvent();};typedef SmartPtr<GaugeThresholdImpl> GaugeThresholdImplPtr;//------------------------------------------------------------------------// // Class: ByteGaugeThreshold////------------------------------------------------------------------------class ByteGaugeThresholdImpl : public GaugeThresholdImpl{public: ByteGaugeThresholdImpl( Object* pOwner, unsigned char highThreshold, unsigned char lowThreshold, unsigned char offset = 0U ); unsigned char GetHighThreshold(); unsigned char GetLowThreshold (); unsigned char GetOffset (); bool SetHighThreshold( unsigned char highThreshold ); bool SetLowThreshold ( unsigned char lowThreshold ); bool SetOffset ( unsigned char offset );protected: virtual void* GetInterface();};// END CLASS DEFINITION ByteGaugeThresholdtypedef SmartPtr<ByteGaugeThresholdImpl> ByteGaugeThresholdImplPtr;//------------------------------------------------------------------------// // Class: IntGaugeThreshold////------------------------------------------------------------------------class IntGaugeThresholdImpl : public GaugeThresholdImpl{public: IntGaugeThresholdImpl( Object* pOwner, int highThreshold, int lowThreshold, int offset = 0 ); int GetHighThreshold(); int GetLowThreshold (); int GetOffset (); bool SetHighThreshold( int highThreshold ); bool SetLowThreshold ( int lowThreshold ); bool SetOffset ( int offset );protected: virtual void* GetInterface();};// END CLASS DEFINITION IntGaugeThresholdtypedef SmartPtr<IntGaugeThresholdImpl> IntGaugeThresholdImplPtr;//------------------------------------------------------------------------// // Class: UIntGaugeThreshold////------------------------------------------------------------------------class UIntGaugeThresholdImpl : public GaugeThresholdImpl{public: UIntGaugeThresholdImpl( Object* pOwner, unsigned int highThreshold, unsigned int lowThreshold, unsigned int offset = 0U ); unsigned int GetHighThreshold(); unsigned int GetLowThreshold (); unsigned int GetOffset (); bool SetHighThreshold( unsigned int highThreshold ); bool SetLowThreshold ( unsigned int lowThreshold ); bool SetOffset ( unsigned int offset );protected: virtual void* GetInterface();}; // END CLASS DEFINITION UIntGaugeThresholdtypedef SmartPtr<UIntGaugeThresholdImpl> UIntGaugeThresholdImplPtr;//------------------------------------------------------------------------// // Class: Int64GaugeThreshold////------------------------------------------------------------------------class Int64GaugeThresholdImpl : public GaugeThresholdImpl{public: Int64GaugeThresholdImpl( Object* pOwner, __int64 highThreshold, __int64 lowThreshold, __int64 offset = 0 ); __int64 GetHighThreshold(); __int64 GetLowThreshold (); __int64 GetOffset (); bool SetHighThreshold( __int64 highThreshold ); bool SetLowThreshold ( __int64 lowThreshold ); bool SetOffset ( __int64 offset );protected: virtual void* GetInterface();};// END CLASS DEFINITION Int64GaugeThresholdtypedef SmartPtr<Int64GaugeThresholdImpl> Int64GaugeThresholdImplPtr;//------------------------------------------------------------------------// // Class: UInt64GaugeThreshold////------------------------------------------------------------------------class UInt64GaugeThresholdImpl : public GaugeThresholdImpl{public: UInt64GaugeThresholdImpl( Object* pOwner, unsigned __int64 highThreshold, unsigned __int64 lowThreshold, unsigned __int64 offset = 0U ); unsigned __int64 GetHighThreshold(); unsigned __int64 GetLowThreshold (); unsigned __int64 GetOffset (); bool SetHighThreshold( unsigned __int64 highThreshold ); bool SetLowThreshold ( unsigned __int64 lowThreshold ); bool SetOffset ( unsigned __int64 offset );protected: virtual void* GetInterface();};// END CLASS DEFINITION UInt64GaugeThresholdtypedef SmartPtr<UInt64GaugeThresholdImpl> UInt64GaugeThresholdImplPtr;//------------------------------------------------------------------------// // Class: DateGaugeThreshold////------------------------------------------------------------------------class DateGaugeThresholdImpl : public GaugeThresholdImpl{public: DateGaugeThresholdImpl( Object* pOwner, DATE highThreshold, DATE lowThreshold, DATE offset = 0.0 ); DATE GetHighThreshold(); DATE GetLowThreshold (); DATE GetOffset (); bool SetHighThreshold( DATE highThreshold ); bool SetLowThreshold ( DATE lowThreshold ); bool SetOffset ( DATE offset );protected: virtual void* GetInterface();};// END CLASS DEFINITION DateGaugeThresholdtypedef SmartPtr<DateGaugeThresholdImpl> DateGaugeThresholdImplPtr;//------------------------------------------------------------------------// // Class: FloatGaugeThreshold////------------------------------------------------------------------------class FloatGaugeThresholdImpl : public GaugeThresholdImpl{public: FloatGaugeThresholdImpl( Object* pOwner, float highThreshold, float lowThreshold, float offset = 0.0 ); float GetHighThreshold(); float GetLowThreshold (); float GetOffset (); bool SetHighThreshold( float highThreshold ); bool SetLowThreshold ( float lowThreshold ); bool SetOffset ( float offset );protected: virtual void* GetInterface();};// END CLASS DEFINITION FloatGaugeThresholdtypedef SmartPtr<FloatGaugeThresholdImpl> FloatGaugeThresholdImplPtr;//==============================================================================#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -