📄 base_property.cpp
字号:
} Intel::Mobile::Storage::AccessType AccessTypeProperty::GetValue() { if (m_pImpl) { Intel::Mobile::BaseAPI::IntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return (Intel::Mobile::Storage::AccessType)(pAPI_Property->GetValue()); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::AccessTypeProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::AccessTypeProperty"), IntelMobileText("GetValue")); } Intel::Mobile::Storage::PartitionFormatType PartitionFormatTypeProperty::GetValue() { if (m_pImpl) { Intel::Mobile::BaseAPI::IntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return (Intel::Mobile::Storage::PartitionFormatType)(pAPI_Property->GetValue()); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::PartitionFormatTypeProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::PartitionFormatTypeProperty"), IntelMobileText("GetValue")); } Intel::Mobile::Storage::PartitionType PartitionTypeProperty::GetValue() { if (m_pImpl) { Intel::Mobile::BaseAPI::IntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return (Intel::Mobile::Storage::PartitionType)(pAPI_Property->GetValue()); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::PartitionTypeProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::PartitionTypeProperty"), IntelMobileText("GetValue")); }*/ /*Intel::Mobile::Display::OrientationEnum OrientationEnumProperty::GetValue() { if (m_pImpl) { Intel::Mobile::BaseAPI::IntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return (Intel::Mobile::Display::OrientationEnum)(pAPI_Property->GetValue()); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::OrientationEnumProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::OrientationEnumProperty"), IntelMobileText("GetValue")); }*/ unsigned char ByteArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::ByteArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::ByteArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->GetValue(Offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::ByteArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::ByteArrayProperty"), IntelMobileText("GetValue")); } __int32 IntArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::IntArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->GetValue(Offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::IntArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::IntArrayProperty"), IntelMobileText("GetValue")); } unsigned __int32 UIntArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::UIntArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UIntArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->GetValue(Offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::UIntArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::UIntArrayProperty"), IntelMobileText("GetValue")); } __int64 Int64ArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::Int64ArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::Int64ArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->GetValue(Offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::Int64ArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::Int64ArrayProperty"), IntelMobileText("GetValue")); } unsigned __int64 UInt64ArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::UInt64ArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UInt64ArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->GetValue(Offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::UInt64ArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::UInt64ArrayProperty"), IntelMobileText("GetValue")); } StringObject StringArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::StringArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::StringArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { IntelMobileChar* pValue = pAPI_Property->GetValue(Offset); StringObject sValue( pValue ); delete[] pValue; return sValue; } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::StringArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::StringArrayProperty"), IntelMobileText("GetValue")); } bool BoolArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::BoolArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::BoolArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->GetValue(Offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::BoolArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::BoolArrayProperty"), IntelMobileText("GetValue")); } DATE DateTimeArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::DateTimeArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::DateTimeArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->GetValue(Offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::DateTimeArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::DateTimeArrayProperty"), IntelMobileText("GetValue")); } float FloatArrayProperty::GetValue( unsigned __int32 Offset ) { if (m_pImpl) { Intel::Mobile::BaseAPI::FloatArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::FloatArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->GetValue(Offset); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::FloatArrayProperty"), IntelMobileText("GetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::FloatArrayProperty"), IntelMobileText("GetValue")); } //////////////////////////////////////////////////////////////////////////////// // Specialized Set Functions bool ByteProperty::SetValue( unsigned char Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::ByteProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::ByteProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::ByteProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::ByteProperty"), IntelMobileText("SetValue")); } bool IntProperty::SetValue( __int32 Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::IntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::IntProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::IntProperty"), IntelMobileText("SetValue")); } bool UIntProperty::SetValue( unsigned __int32 Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::UIntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UIntProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::UIntProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::UIntProperty"), IntelMobileText("SetValue")); } bool Int64Property::SetValue( __int64 Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::Int64Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::Int64Property*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::Int64Property"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::Int64Property"), IntelMobileText("SetValue")); } bool UInt64Property::SetValue( unsigned __int64 Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::UInt64Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UInt64Property*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::UInt64Property"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::UInt64Property"), IntelMobileText("SetValue")); } bool StringProperty::SetValue( StringObject Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::StringProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::StringProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( const_cast<IntelMobileChar *>(Value.GetValue()) ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::StringProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::StringProperty"), IntelMobileText("SetValue")); } bool BoolProperty::SetValue( bool Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::BoolProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::BoolProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::BoolProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::BoolProperty"), IntelMobileText("SetValue")); } bool DateTimeProperty::SetValue( DATE Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::DateTimeProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::DateTimeProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::DateTimeProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::DateTimeProperty"), IntelMobileText("SetValue")); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -