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