📄 gaugethreshold.cpp
字号:
if (m_pImpl) { Intel::Mobile::ThresholdAPI::IntGaugeThreshold *p = reinterpret_cast<Intel::Mobile::ThresholdAPI::IntGaugeThreshold*>(m_pImpl); if (p) delete p; m_pImpl = NULL; } }}//==============================================================================// SetObservedProperty() : //==============================================================================bool IntGaugeThreshold::SetObservedProperty( const Intel::Mobile::Base::IntProperty& observedProperty ){ if (m_pImpl) { Intel::Mobile::BaseAPI::IntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntProperty*>(observedProperty.GetImpl()); if (pAPI_Property) { Intel::Mobile::ThresholdAPI::IntGaugeThreshold* pThreshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::IntGaugeThreshold*>(m_pImpl); if (pThreshold) { TRYBLOCK { return pThreshold->SetObservedProperty(*pAPI_Property); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetObservedProperty")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetObservedProperty")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetObservedProperty"));} // SetObservedProperty()//==============================================================================// GetHighThreshold()//==============================================================================__int32 IntGaugeThreshold::GetHighThreshold() const { if (m_pImpl) { Intel::Mobile::ThresholdAPI::IntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::IntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->GetHighThreshold(); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("GetHighThreshold")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("GetHighThreshold"));} // GetHighThreshold()//==============================================================================// GetLowThreshold()//==============================================================================__int32 IntGaugeThreshold::GetLowThreshold() const { if (m_pImpl) { Intel::Mobile::ThresholdAPI::IntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::IntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->GetLowThreshold(); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("GetLowThreshold")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("GetLowThreshold"));} // GetLowThreshold()//==============================================================================// GetOffset()//==============================================================================__int32 IntGaugeThreshold::GetOffset() const { if (m_pImpl) { Intel::Mobile::ThresholdAPI::IntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::IntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->GetOffset(); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("GetOffset")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("GetOffset"));} // GetOffset()//==============================================================================// SetHighThreshold()//==============================================================================bool IntGaugeThreshold::SetHighThreshold( __int32 highThreshold ) { if (m_pImpl) { Intel::Mobile::ThresholdAPI::IntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::IntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->SetHighThreshold(highThreshold); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetHighThreshold")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetHighThreshold"));} // SetHighThreshold()//==============================================================================// SetLowThreshold()//==============================================================================bool IntGaugeThreshold::SetLowThreshold( __int32 lowThreshold ) { if (m_pImpl) { Intel::Mobile::ThresholdAPI::IntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::IntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->SetLowThreshold(lowThreshold); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetLowThreshold")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetLowThreshold"));} // SetLowThreshold()//==============================================================================// SetOffset()//==============================================================================bool IntGaugeThreshold::SetOffset( __int32 offset ) { if (m_pImpl) { Intel::Mobile::ThresholdAPI::IntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::IntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->SetOffset(offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetOffset")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::IntGaugeThreshold"), IntelMobileText("SetOffset"));} // SetOffset()// END CLASS DEFINITION GaugeThreshold//------------------------------------------------------------------------// // Class: UIntGaugeThreshold////------------------------------------------------------------------------//==============================================================================// C-Tor() : Constructor//==============================================================================UIntGaugeThreshold::UIntGaugeThreshold(){ try { m_pImpl = new Intel::Mobile::ThresholdAPI::UIntGaugeThreshold(); } catch(...) { if (m_pImpl) { delete m_pImpl; m_pImpl = NULL; } }}UIntGaugeThreshold::UIntGaugeThreshold(void *pImpl): GaugeThreshold(pImpl){}//==============================================================================// D-Tor() : //==============================================================================UIntGaugeThreshold::~UIntGaugeThreshold(){ if (m_flag) { if (m_pImpl) { Intel::Mobile::ThresholdAPI::UIntGaugeThreshold *p = reinterpret_cast<Intel::Mobile::ThresholdAPI::UIntGaugeThreshold*>(m_pImpl); if (p) delete p; m_pImpl = NULL; } }}//==============================================================================// SetObservedProperty() : //==============================================================================bool UIntGaugeThreshold::SetObservedProperty( const Intel::Mobile::Base::UIntProperty& observedProperty ){ if (m_pImpl) { Intel::Mobile::BaseAPI::UIntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UIntProperty*>(observedProperty.GetImpl()); if (pAPI_Property) { Intel::Mobile::ThresholdAPI::UIntGaugeThreshold* pThreshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UIntGaugeThreshold*>(m_pImpl); if (pThreshold) { TRYBLOCK { return pThreshold->SetObservedProperty(*pAPI_Property); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetObservedProperty")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetObservedProperty")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetObservedProperty"));} // SetObservedProperty()//==============================================================================// GetHighThreshold()//==============================================================================unsigned __int32 UIntGaugeThreshold::GetHighThreshold() const { if (m_pImpl) { Intel::Mobile::ThresholdAPI::UIntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UIntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->GetHighThreshold(); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("GetHighThreshold")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("GetHighThreshold"));} // GetHighThreshold()//==============================================================================// GetLowThreshold()//==============================================================================unsigned __int32 UIntGaugeThreshold::GetLowThreshold() const { if (m_pImpl) { Intel::Mobile::ThresholdAPI::UIntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UIntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->GetLowThreshold(); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("GetLowThreshold")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("GetLowThreshold"));} // GetLowThreshold()//==============================================================================// GetOffset()//==============================================================================unsigned __int32 UIntGaugeThreshold::GetOffset() const { if (m_pImpl) { Intel::Mobile::ThresholdAPI::UIntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UIntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->GetOffset(); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("GetOffset")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("GetOffset"));} // GetOffset()//==============================================================================// SetHighThreshold()//==============================================================================bool UIntGaugeThreshold::SetHighThreshold( unsigned __int32 highThreshold ) { if (m_pImpl) { Intel::Mobile::ThresholdAPI::UIntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UIntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->SetHighThreshold(highThreshold); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetHighThreshold")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetHighThreshold"));} // SetHighThreshold()//==============================================================================// SetLowThreshold()//==============================================================================bool UIntGaugeThreshold::SetLowThreshold( unsigned __int32 lowThreshold ) { if (m_pImpl) { Intel::Mobile::ThresholdAPI::UIntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UIntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->SetLowThreshold(lowThreshold); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetLowThreshold")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetLowThreshold"));} // SetLowThreshold()//==============================================================================// SetOffset()//==============================================================================bool UIntGaugeThreshold::SetOffset( unsigned __int32 offset ) { if (m_pImpl) { Intel::Mobile::ThresholdAPI::UIntGaugeThreshold *pAPI_Threshold = reinterpret_cast<Intel::Mobile::ThresholdAPI::UIntGaugeThreshold*>(m_pImpl); if (pAPI_Threshold) { TRYBLOCK { return pAPI_Threshold->SetOffset(offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetOffset")); } else THROWNE(IntelMobileText("Intel::Mobile::Threshold::UIntGaugeThreshold"), IntelMobileText("SetOffset"));} // SetOffset()// END CLASS DEFINITION GaugeThreshold//------------------------------------------------------------------------// // Class: Int64GaugeThreshold////------------------------------------------------------------------------//==============================================================================// C-Tor() : Constructor//==============================================================================Int64GaugeThreshold::Int64GaugeThreshold(){ try { m_pImpl = new Intel::Mobile::ThresholdAPI::Int64GaugeThreshold(); } catch(...) { if (m_pImpl) { delete m_pImpl; m_pImpl = NULL; } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -