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

📄 counterthreshold.cpp

📁 270的linux说明
💻 CPP
📖 第 1 页 / 共 3 页
字号:
		Intel::Mobile::ThresholdAPI::Int64CounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::Int64CounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->GetOffset(); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::Int64CounterThreshold"), IntelMobileText("GetOffset"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::Int64CounterThreshold"), IntelMobileText("GetOffset"));} // GetOffset()//==============================================================================// SetOffset()//==============================================================================bool Int64CounterThreshold::SetOffset( __int64 offset ) { 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::Int64CounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::Int64CounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->SetOffset(offset); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::Int64CounterThreshold"), IntelMobileText("SetOffset"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::Int64CounterThreshold"), IntelMobileText("SetOffset"));} // SetOffset()//++++++++++++++++++++++++++++++++++++++++++++++++++++//  //  Class UInt64CounterThreshold////++++++++++++++++++++++++++++++++++++++++++++++++++++//==============================================================================// C-Tor() : Constructor//==============================================================================UInt64CounterThreshold::UInt64CounterThreshold(){                                        	try {		m_pImpl = new Intel::Mobile::ThresholdAPI::UInt64CounterThreshold();	}	catch(...)	{		if (m_pImpl)		{			delete m_pImpl;			m_pImpl = NULL;		}	}}UInt64CounterThreshold::UInt64CounterThreshold(void *pImpl): CounterThreshold(pImpl){}//==============================================================================// D-Tor() : //==============================================================================UInt64CounterThreshold::~UInt64CounterThreshold(){	if (m_flag)	{		if (m_pImpl)		{			Intel::Mobile::ThresholdAPI::UInt64CounterThreshold *p = reinterpret_cast<Intel::Mobile::ThresholdAPI::UInt64CounterThreshold*>(m_pImpl);			if (p)				delete p;			m_pImpl = NULL;		}	}}//==============================================================================// SetObservedProperty() : //==============================================================================bool UInt64CounterThreshold::SetObservedProperty( const Intel::Mobile::Base::UInt64Property& observedProperty ){	if (m_pImpl)	{		Intel::Mobile::BaseAPI::UInt64Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UInt64Property*>(observedProperty.GetImpl());		if (pAPI_Property)		{			Intel::Mobile::ThresholdAPI::UInt64CounterThreshold* pThreshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UInt64CounterThreshold*>(m_pImpl);			if (pThreshold)			{				TRYBLOCK { return pThreshold->SetObservedProperty(*pAPI_Property); } CATCHBLOCK			}			else				THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("SetObservedProperty"));		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("SetObservedProperty"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("SetObservedProperty"));} // SetObservedProperty()//==============================================================================// GetThreshold()//==============================================================================unsigned __int64 UInt64CounterThreshold::GetThreshold() const{ 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::UInt64CounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UInt64CounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->GetThreshold(); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("GetThreshold"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("GetThreshold"));} // GetThreshold()//==============================================================================// SetThreshold()//==============================================================================bool UInt64CounterThreshold::SetThreshold( unsigned __int64 threshold ) { 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::UInt64CounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UInt64CounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->SetThreshold(threshold); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("SetThreshold"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("SetThreshold"));} // SetThreshold()//==============================================================================// GetOffset()//==============================================================================unsigned __int64 UInt64CounterThreshold::GetOffset() const{ 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::UInt64CounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UInt64CounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->GetOffset(); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("GetOffset"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("GetOffset"));} // GetOffset()//==============================================================================// SetOffset()//==============================================================================bool UInt64CounterThreshold::SetOffset( unsigned __int64 offset ) { 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::UInt64CounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UInt64CounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->SetOffset(offset); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("SetOffset"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::UInt64CounterThreshold"), IntelMobileText("SetOffset"));} // SetOffset()//++++++++++++++++++++++++++++++++++++++++++++++++++++//  //  Class DateCounterThreshold////++++++++++++++++++++++++++++++++++++++++++++++++++++//==============================================================================// C-Tor() : Constructor//==============================================================================DateCounterThreshold::DateCounterThreshold(){                                        	try {		m_pImpl = new Intel::Mobile::ThresholdAPI::DateCounterThreshold();	}	catch(...)	{		if (m_pImpl)		{			delete m_pImpl;			m_pImpl = NULL;		}	}}DateCounterThreshold::DateCounterThreshold(void *pImpl): CounterThreshold(pImpl){}//==============================================================================// D-Tor() : //==============================================================================DateCounterThreshold::~DateCounterThreshold(){	if (m_flag)	{		if (m_pImpl)		{			Intel::Mobile::ThresholdAPI::DateCounterThreshold *p = reinterpret_cast<Intel::Mobile::ThresholdAPI::DateCounterThreshold*>(m_pImpl);			if (p)				delete p;			m_pImpl = NULL;		}	}}//==============================================================================// SetObservedProperty() : //==============================================================================bool DateCounterThreshold::SetObservedProperty( const Intel::Mobile::Base::DateTimeProperty& observedProperty ){	if (m_pImpl)	{		Intel::Mobile::BaseAPI::DateTimeProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::DateTimeProperty*>(observedProperty.GetImpl());		if (pAPI_Property)		{			Intel::Mobile::ThresholdAPI::DateCounterThreshold* pThreshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::DateCounterThreshold*>(m_pImpl);			if (pThreshold)			{				TRYBLOCK { return pThreshold->SetObservedProperty(*pAPI_Property); } CATCHBLOCK			}			else				THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("SetObservedProperty"));		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("SetObservedProperty"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("SetObservedProperty"));} // SetObservedProperty()//==============================================================================// GetThreshold()//==============================================================================DATE DateCounterThreshold::GetThreshold() const{ 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::DateCounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::DateCounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->GetThreshold(); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("GetThreshold"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("GetThreshold"));} // GetThreshold()//==============================================================================// SetThreshold()//==============================================================================bool DateCounterThreshold::SetThreshold( DATE threshold ) { 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::DateCounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::DateCounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->SetThreshold(threshold); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("SetThreshold"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("SetThreshold"));} // SetThreshold()//==============================================================================// GetOffset()//==============================================================================DATE DateCounterThreshold::GetOffset() const{ 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::DateCounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::DateCounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->GetOffset(); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("GetOffset"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("GetOffset"));} // GetOffset()//==============================================================================// SetOffset()//==============================================================================bool DateCounterThreshold::SetOffset( DATE offset ) { 	if (m_pImpl)	{		Intel::Mobile::ThresholdAPI::DateCounterThreshold* pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::DateCounterThreshold*>(m_pImpl);		if (pAPI_Threshold)		{			TRYBLOCK { return pAPI_Threshold->SetOffset(offset); } CATCHBLOCK		}		else			THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("SetOffset"));	}	else		THROWNE(IntelMobileText("Intel::Mobile::Threshold::DateCounterThreshold"), IntelMobileText("SetOffset"));} // SetOffset()//==============================================================================

⌨️ 快捷键说明

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