⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 base_property.cpp

📁 270的linux说明
💻 CPP
📖 第 1 页 / 共 4 页
字号:
			{ 				if (m_pImpl) 				{ 					Intel::Mobile::BaseAPI::Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::Property*>(m_pImpl); 					if (pAPI_Property)					{ TRYBLOCK { return pAPI_Property->IsNull(); } CATCHBLOCK }					else						THROWNE(IntelMobileText("Intel::Mobile::Base::Property"), IntelMobileText("IsNull"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::Property"), IntelMobileText("IsNull"));			}			bool			Property::IsSettable		()	const 			{ 				if (m_pImpl) 				{ 					Intel::Mobile::BaseAPI::Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::Property*>(m_pImpl); 					if (pAPI_Property)					{ TRYBLOCK { return pAPI_Property->IsSettable(); } CATCHBLOCK }					else						THROWNE(IntelMobileText("Intel::Mobile::Base::Property"), IntelMobileText("IsSettable"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::Property"), IntelMobileText("IsSettable"));			}			bool			Property::IsStatic			()	const 			{ 				if (m_pImpl) 				{ 					Intel::Mobile::BaseAPI::Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::Property*>(m_pImpl); 					if (pAPI_Property)					{ TRYBLOCK { return pAPI_Property->IsStatic(); } CATCHBLOCK }					else						THROWNE(IntelMobileText("Intel::Mobile::Base::Property"), IntelMobileText("IsStatic"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::Property"), IntelMobileText("IsStatic"));			}			bool			Property::IsAvailable			()	const 			{ 				if (m_pImpl) 				{ 					Intel::Mobile::BaseAPI::Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::Property*>(m_pImpl); 					if (pAPI_Property)					{ TRYBLOCK { return pAPI_Property->IsAvailable(); } CATCHBLOCK }					else						THROWNE(IntelMobileText("Intel::Mobile::Base::Property"), IntelMobileText("IsAvailable"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::Property"), IntelMobileText("IsAvailable"));			}			////////////////////////////////////////////////////////////////////////////////			// Base class ArrayProperty			//==============================================================================			ArrayProperty::ArrayProperty( InstanceObject &parent ) 				: Property( parent )			{			}			//==============================================================================			ArrayProperty::~ArrayProperty() 			{			}			//==============================================================================			unsigned __int32 ArrayProperty::GetSize() const 			{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::ArrayProperty* pAPI_ArrayProperty = reinterpret_cast<Intel::Mobile::BaseAPI::ArrayProperty*>(m_pImpl);					if (pAPI_ArrayProperty)					{						TRYBLOCK {return pAPI_ArrayProperty->GetSize();} CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::ArrayProperty"), IntelMobileText("GetSize"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::ArrayProperty"), IntelMobileText("GetSize"));			}			////////////////////////////////////////////////////////////////////////////////			// Specialized constructors			ByteProperty										::ByteProperty									( InstanceObject &parent ) : Property( parent ) {}			IntProperty											::IntProperty										( InstanceObject &parent ) : Property( parent ) {}			UIntProperty										::UIntProperty									( InstanceObject &parent ) : Property( parent ) {}			Int64Property										::Int64Property									( InstanceObject &parent ) : Property( parent ) {}			UInt64Property									::UInt64Property								( InstanceObject &parent ) : Property( parent ) {}			StringProperty										::StringProperty									( InstanceObject &parent ) : Property( parent ) {}			BoolProperty										::BoolProperty									( InstanceObject &parent ) : Property( parent ) {}			DateTimeProperty								::DateTimeProperty							( InstanceObject &parent ) : Property( parent ) {}			FloatProperty										::FloatProperty									( InstanceObject &parent ) : Property( parent ) {}			//ConditionTypeProperty							::ConditionTypeProperty					( InstanceObject &parent ) : Property( parent ) {}			//PowerSourceTypeProperty								::PowerSourceTypeProperty						( InstanceObject &parent ) : Property( parent ) {}									/*DiskInterfaceTypeProperty		::DiskInterfaceTypeProperty ( InstanceObject &parent ) : Property( parent ) {}			DiskMediaTypeProperty			::DiskMediaTypeProperty ( InstanceObject &parent ) : Property( parent ) {}			AccessTypeProperty			::AccessTypeProperty ( InstanceObject &parent ) : Property( parent ) {}			PartitionFormatTypeProperty			::PartitionFormatTypeProperty ( InstanceObject &parent ) : Property( parent ) {}			PartitionTypeProperty			::PartitionTypeProperty ( InstanceObject &parent ) : Property( parent ) {}*/			//OrientationEnumProperty				::OrientationEnumProperty	( InstanceObject &parent ) : Property( parent ) {}			//ScreenStateEnumProperty			::ScreenStateEnumProperty	( InstanceObject &parent ) : Property( parent ) {}			//IMPLEMENT_ENUMPROPERTY( ConditionEnumProperty, Intel::Mobile::Battery::ConditionEnum );			ByteArrayProperty								::ByteArrayProperty							( InstanceObject &parent ) : ArrayProperty( parent ) {}			IntArrayProperty									::IntArrayProperty								( InstanceObject &parent ) : ArrayProperty( parent ) {}			UIntArrayProperty								::UIntArrayProperty							( InstanceObject &parent ) : ArrayProperty( parent ) {}			Int64ArrayProperty								::Int64ArrayProperty							( InstanceObject &parent ) : ArrayProperty( parent ) {}			UInt64ArrayProperty							::UInt64ArrayProperty						( InstanceObject &parent ) : ArrayProperty( parent ) {}			StringArrayProperty								::StringArrayProperty						( InstanceObject &parent ) : ArrayProperty( parent ) {}			BoolArrayProperty								::BoolArrayProperty							( InstanceObject &parent ) : ArrayProperty( parent ) {}			DateTimeArrayProperty						::DateTimeArrayProperty					( InstanceObject &parent ) : ArrayProperty( parent ) {}			FloatArrayProperty								::FloatArrayProperty							( InstanceObject &parent ) : ArrayProperty( parent ) {}			////////////////////////////////////////////////////////////////////////////////			// Specialized Get Functions			unsigned char ByteProperty::GetValue()				{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::ByteProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::ByteProperty*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK { return pAPI_Property->GetValue(); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::ByteProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::ByteProperty"), IntelMobileText("GetValue"));			}			__int32 IntProperty::GetValue()									{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::IntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::IntProperty*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK { return pAPI_Property->GetValue(); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::IntProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::IntProperty"), IntelMobileText("GetValue"));			}			unsigned __int32 UIntProperty::GetValue() 			{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::UIntProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UIntProperty*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK { return pAPI_Property->GetValue(); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::UIntProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::UIntProperty"), IntelMobileText("GetValue"));			}			__int64 Int64Property::GetValue()						{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::Int64Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::Int64Property*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK { return pAPI_Property->GetValue(); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::Int64Property"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::Int64Property"), IntelMobileText("GetValue"));			}			unsigned __int64  UInt64Property ::GetValue() 			{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::UInt64Property* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::UInt64Property*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK { return pAPI_Property->GetValue(); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::UInt64Property"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::UInt64Property"), IntelMobileText("GetValue"));			}			StringObject  StringProperty::GetValue() 			{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::StringProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::StringProperty*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK 						{ 							IntelMobileChar* pValue = pAPI_Property->GetValue(); 							StringObject sValue( pValue );							delete[] pValue;							return sValue;						} 						CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::StringProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::StringProperty"), IntelMobileText("GetValue"));			}			bool BoolProperty::GetValue() 			{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::BoolProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::BoolProperty*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK { return pAPI_Property->GetValue(); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::BoolProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::BoolProperty"), IntelMobileText("GetValue"));			}			DATE DateTimeProperty::GetValue() 			{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::DateTimeProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::DateTimeProperty*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK { return pAPI_Property->GetValue(); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::DateTimeProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::DateTimeProperty"), IntelMobileText("GetValue"));			}			float FloatProperty::GetValue() 			{ 				if (m_pImpl)				{					Intel::Mobile::BaseAPI::FloatProperty* pAPI_Property = reinterpret_cast<Intel::Mobile::BaseAPI::FloatProperty*>(m_pImpl);					if (pAPI_Property)					{						TRYBLOCK { return pAPI_Property->GetValue(); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::FloatProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::FloatProperty"), IntelMobileText("GetValue"));			}			// 			//Intel::Mobile::Battery::ConditionType ConditionTypeProperty::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::Battery::ConditionType)(pAPI_Property->GetValue()); } CATCHBLOCK			//		}			//		else			//			THROWNE(IntelMobileText("Intel::Mobile::Base::ConditionTypeProperty"), IntelMobileText("GetValue"));			//	}			//	else			//		THROWNE(IntelMobileText("Intel::Mobile::Base::ConditionTypeProperty"), IntelMobileText("GetValue"));			//}			//Intel::Mobile::Context::PowerSourceType PowerSourceTypeProperty::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::Context::PowerSourceType)(pAPI_Property->GetValue()); } CATCHBLOCK			//		}			//		else			//			THROWNE(IntelMobileText("Intel::Mobile::Base::PowerSourceTypeProperty"), IntelMobileText("GetValue"));			//	}			//	else			//		THROWNE(IntelMobileText("Intel::Mobile::Base::PowerSourceTypeProperty"), IntelMobileText("GetValue"));			//}			/*Intel::Mobile::Storage::DiskInterfaceType DiskInterfaceTypeProperty::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::DiskInterfaceType)(pAPI_Property->GetValue()); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::DiskInterfaceTypeProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::DiskInterfaceTypeProperty"), IntelMobileText("GetValue"));			}			Intel::Mobile::Storage::DiskMediaType DiskMediaTypeProperty::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::DiskMediaType)(pAPI_Property->GetValue()); } CATCHBLOCK					}					else						THROWNE(IntelMobileText("Intel::Mobile::Base::DiskMediaTypeProperty"), IntelMobileText("GetValue"));				}				else					THROWNE(IntelMobileText("Intel::Mobile::Base::DiskMediaTypeProperty"), IntelMobileText("GetValue"));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -