📄 base_property.cpp
字号:
bool FloatProperty::SetValue( float Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::FloatProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::FloatProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::FloatProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::FloatProperty"), IntelMobileText("SetValue")); } // //bool ConditionTypeProperty ::SetValue(Intel::Mobile::Battery::ConditionType 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( (int)Value ); } CATCHBLOCK // } // else // THROWNE(IntelMobileText("Intel::Mobile::Base::ConditionTypeProperty"), IntelMobileText("SetValue")); // } // else // THROWNE(IntelMobileText("Intel::Mobile::Base::ConditionTypeProperty"), IntelMobileText("SetValue")); //} //bool PowerSourceTypeProperty ::SetValue(Intel::Mobile::Context::PowerSourceType 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( (int)Value ); } CATCHBLOCK // } // else // THROWNE(IntelMobileText("Intel::Mobile::Base::PowerSourceTypeProperty"), IntelMobileText("SetValue")); // } // else // THROWNE(IntelMobileText("Intel::Mobile::Base::PowerSourceTypeProperty"), IntelMobileText("SetValue")); //} /*bool DiskInterfaceTypeProperty::SetValue(Intel::Mobile::Storage::DiskInterfaceType 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( (int)Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::DiskInterfaceTypeProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::DiskInterfaceTypeProperty"), IntelMobileText("SetValue")); } bool DiskMediaTypeProperty::SetValue(Intel::Mobile::Storage::DiskMediaType 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( (int)Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::DiskMediaTypeProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::DiskMediaTypeProperty"), IntelMobileText("SetValue")); }*/ /*bool OrientationEnumProperty::SetValue(Intel::Mobile::Display::OrientationEnum 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( (int)Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::OrientationEnumProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::OrientationEnumProperty"), IntelMobileText("SetValue")); } bool ScreenStateEnumProperty::SetValue(Intel::Mobile::Display::ScreenStateEnum 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( (int)Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::ScreenStateEnumProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::ScreenStateEnumProperty"), IntelMobileText("SetValue")); }*/ bool ByteArrayProperty::SetValue( unsigned __int32 Offset, unsigned char Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::ByteArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::ByteArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::ByteArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::ByteArrayProperty"), IntelMobileText("SetValue")); } bool IntArrayProperty::SetValue( unsigned __int32 Offset, __int32 Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::IntArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::IntArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::IntArrayProperty"), IntelMobileText("SetValue")); } bool UIntArrayProperty::SetValue( unsigned __int32 Offset, unsigned __int32 Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::UIntArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UIntArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::UIntArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::UIntArrayProperty"), IntelMobileText("SetValue")); } bool Int64ArrayProperty::SetValue( unsigned __int32 Offset, __int64 Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::Int64ArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::Int64ArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::Int64ArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::Int64ArrayProperty"), IntelMobileText("SetValue")); } bool UInt64ArrayProperty::SetValue( unsigned __int32 Offset, unsigned __int64 Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::UInt64ArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UInt64ArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::UInt64ArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::UInt64ArrayProperty"), IntelMobileText("SetValue")); } bool StringArrayProperty::SetValue( unsigned __int32 Offset, StringObject Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::StringArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::StringArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, const_cast<IntelMobileChar *>(Value.GetValue())); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::StringArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::StringArrayProperty"), IntelMobileText("SetValue")); } bool BoolArrayProperty::SetValue( unsigned __int32 Offset, bool Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::BoolArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::BoolArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::BoolArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::BoolArrayProperty"), IntelMobileText("SetValue")); } bool DateTimeArrayProperty::SetValue( unsigned __int32 Offset, DATE Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::DateTimeArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::DateTimeArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::DateTimeArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::DateTimeArrayProperty"), IntelMobileText("SetValue")); } bool FloatArrayProperty::SetValue( unsigned __int32 Offset, float Value ) { if (m_pImpl) { Intel::Mobile::BaseAPI::FloatArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::FloatArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->SetValue( Offset, Value ); } CATCHBLOCK } else THROWNE(IntelMobileText("Intel::Mobile::Base::FloatArrayProperty"), IntelMobileText("SetValue")); } else THROWNE(IntelMobileText("Intel::Mobile::Base::FloatArrayProperty"), IntelMobileText("SetValue")); } IMPLEMENT_ARRAYPROPERTYEX(ByteArrayProperty, Intel::Mobile::BaseAPI::ByteArrayProperty, unsigned char); IMPLEMENT_ARRAYPROPERTYEX(IntArrayProperty, Intel::Mobile::BaseAPI::IntArrayProperty, __int32); IMPLEMENT_ARRAYPROPERTYEX(UIntArrayProperty, Intel::Mobile::BaseAPI::UIntArrayProperty, unsigned __int32); IMPLEMENT_ARRAYPROPERTYEX(Int64ArrayProperty, Intel::Mobile::BaseAPI::Int64ArrayProperty, __int64); IMPLEMENT_ARRAYPROPERTYEX(UInt64ArrayProperty, Intel::Mobile::BaseAPI::UInt64ArrayProperty, unsigned __int64); /*IMPLEMENT_ARRAYPROPERTYEX(StringArrayProperty, Intel::Mobile::BaseAPI::StringArrayProperty, float);*/ IMPLEMENT_ARRAYPROPERTYEX(BoolArrayProperty, Intel::Mobile::BaseAPI::BoolArrayProperty, bool); IMPLEMENT_ARRAYPROPERTYEX(DateTimeArrayProperty, Intel::Mobile::BaseAPI::DateTimeArrayProperty, DATE); IMPLEMENT_ARRAYPROPERTYEX(FloatArrayProperty, Intel::Mobile::BaseAPI::FloatArrayProperty, float); __int32 StringArrayProperty::Add( StringObject Value ) { if (m_pImpl) { InstanceObject* obj = (InstanceObject*)GetParent(); if (obj != NULL) obj->CheckInstance(); Intel::Mobile::BaseAPI::StringArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::StringArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return (pAPI_Property->Add(const_cast<IntelMobileChar*>(Value.GetValue()))); } CATCHBLOCK } else THROWNE("Intel::Mobile::Base::StringArrayProperty", "Add"); } else THROWNE(IntelMobileText("Intel::Mobile::Base::StringArrayProperty"), "Add"); } bool StringArrayProperty::Insert( unsigned __int32 Offset, StringObject Value ) { if (m_pImpl) { InstanceObject* obj = (InstanceObject*)GetParent(); if (obj != NULL) obj->CheckInstance(); Intel::Mobile::BaseAPI::StringArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::StringArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->Insert( Offset, const_cast<IntelMobileChar*>(Value.GetValue()) ); } CATCHBLOCK } else THROWNE("Intel::Mobile::Base::StringArrayProperty", "Insert"); } else THROWNE("Intel::Mobile::Base::StringArrayProperty", "Insert"); } bool StringArrayProperty::Remove( StringObject Value ) { if (m_pImpl) { InstanceObject* obj = (InstanceObject*)GetParent(); if (obj != NULL) obj->CheckInstance(); Intel::Mobile::BaseAPI::StringArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::StringArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->Remove( const_cast<IntelMobileChar*>(Value.GetValue()) ); } CATCHBLOCK } else THROWNE("Intel::Mobile::Base::StringArrayProperty", "Remove"); } else THROWNE("Intel::Mobile::Base::StringArrayProperty", "Remove"); } bool StringArrayProperty::Contains( StringObject Value ) { if (m_pImpl) { InstanceObject* obj = (InstanceObject*)GetParent(); if (obj != NULL) obj->CheckInstance(); Intel::Mobile::Base::StringArrayProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::Base::StringArrayProperty*>(m_pImpl); if (pAPI_Property) { TRYBLOCK { return pAPI_Property->Contains( const_cast<IntelMobileChar*>(Value.GetValue()) ); } CATCHBLOCK } else THROWNE("Intel::Mobile::Base::StringArrayProperty", "Contains"); } else THROWNE("Intel::Mobile::Base::StringArrayProperty", "Contains"); } }
namespace Display
{
IMPLEMENT_ENUMPROPERTY( OrientationEnumProperty, Intel::Mobile::Display::OrientationEnum );
} }}//==============================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -