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