亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? base_instanceobject.cpp

?? 270的linux說(shuō)明
?? CPP
字號(hào):
/*

Copyright (c) 2008, Intel Corporation. 

All rights reserved.

 

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:


    * Redistributions of source code must retain the above copyright notice, 
this list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above copyright notice, 
this list of conditions and the following disclaimer in the documentation and/or 
other materials provided with the distribution.

    * Neither the name of Intel Corporation nor the names of its contributors 
may be used to endorse or promote products derived from this software without 
specific prior written permission.

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

*///==============================================================================//    base_InstanceObject.cpp////    Contents://        Implementation of InstanceObject class////==============================================================================#include "base_InstanceObject.h"#include "base_InstanceObject_Impl.h"using namespace Intel::Mobile::BaseAPI;//==============================================================================//class InstanceObject;//==============================================================================// C_Tor()//==============================================================================InstanceObject::InstanceObject( void *pImpl )              : EventClient( pImpl ){	if ( m_pImpl != NULL )		(*reinterpret_cast<ObjectImplPtr*>(m_pImpl))->SetOwner( this );		m_Properties = new PROPERTYMAP();}//==============================================================================// D_Tor()//==============================================================================InstanceObject::~InstanceObject(){    if ( m_pImpl ) // If we have a valid impl * delete the SMART POINTER object    {		PROPERTYMAP *pPropertyMap = reinterpret_cast<PROPERTYMAP *>(m_Properties);		PROPERTYMAP::iterator iter;		while ( !pPropertyMap->empty() )		{			iter = pPropertyMap->begin();			delete (*iter).second;			pPropertyMap->erase( iter );		}				delete pPropertyMap;		m_Properties = NULL;        InstanceObjectImplPtr* pInstanceImpl = reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl);                (*pInstanceImpl)->SetOwner( NULL ); // Remove this as owner of the impl.        delete pInstanceImpl;    }}//==============================================================================// GetType()//==============================================================================IntelMobileChar* InstanceObject::GetType() const{     return (*reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl))->GetType();}//==============================================================================// GetType()//==============================================================================IntelMobileChar* InstanceObject::GetKey() const{     return (*reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl))->GetKey();}//==============================================================================// AddObserver()  //==============================================================================bool InstanceObject::AddObserver( Event::EventType eType, Observer& observer ){	if ( IsEventAvailable( eType ) )	{		if ( m_pImpl )		{			InstanceObjectImplPtr		  spImpl = *reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl);			return spImpl->AddObserver( eType, *reinterpret_cast<ObserverImpl*>(observer.GetImpl()) );		}	}	else	{		IntelMobileException ex( IntelMobileText("InstanceObject : NotSupportEvent Exception"), IntelMobileText("AddObserver"), IntelMobileText("AddObserver") );		throw( ex ); 	}	return false;} // AddObserver() //==============================================================================// RemoveObserver() : Remove it from the observer first. This returns a pointer //                    That may, or may not, be 'this' it is however garaunteed //                    to be of the same type.//==============================================================================bool InstanceObject::RemoveObserver( Event::EventType eType, Observer& observer ){  	if ( IsEventAvailable( eType ) )	{		if ( m_pImpl )		{			InstanceObjectImplPtr		  spImpl = *reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl);			return spImpl->RemoveObserver( eType, *reinterpret_cast<ObserverImpl*>(observer.GetImpl()) );		}	}	else	{		IntelMobileException ex( IntelMobileText("InstanceObject : NotSupportEvent Exception"), IntelMobileText("RemoveObserver"), IntelMobileText("RemoveObserver") );		throw( ex ); 	}	return false;} // RemoveObserver() //==============================================================================// IsEventAvailable() : //==============================================================================bool InstanceObject::IsEventAvailable( Event::EventType eType ) {     if ( m_pImpl )	{		InstanceObjectImplPtr spImpl = *reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl);		return spImpl->IsEventAvailable( eType );	}	return false;} // IsEventAvailable()//==============================================================================// InvokeMethod()//==============================================================================IntelMobileChar* InstanceObject::InvokeMethod(  IntelMobileChar* methodName, IntelMobileChar* param ){ 	if ( IsAvailable( methodName ) )	{		return (*reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl))->InvokeMethod( methodName, param );	}    else	{		IntelMobileException ex( IntelMobileText("InstanceObject : NotSupportMethod Exception"), IntelMobileText("InvokeMethod"), IntelMobileText("InvokeMethod") );		throw( ex ); 	}}//==============================================================================// GetPropertyByName()//==============================================================================Property* InstanceObject::GetPropertyByName(  IntelMobileChar* name, IntelMobileChar* type, IntelMobileChar* nametype ){ 	PROPERTYMAP *pPropertyMap = reinterpret_cast<PROPERTYMAP *>(m_Properties);		IntelMobileString namestr = name;	PROPERTYMAP::iterator it = pPropertyMap->find( namestr );	if ( it != pPropertyMap->end() )		return (*it).second;	Property* pProperty = NULL;	if ( m_pImpl )	{		InstanceObjectImplPtr spImpl = *reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl);				PropertyBaseImpl *pPropImpl = spImpl->GetPropertyImplByName( name, type );		if ( pPropImpl )		{			if ( ::strcmp(type, IntelMobileText("Byte")) == 0 ) pProperty = new ByteProperty( new PropertyBaseImplPtr( reinterpret_cast<BytePropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("Int")) == 0 ) pProperty = new IntProperty( new PropertyBaseImplPtr( reinterpret_cast<IntPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("UInt")) == 0 ) pProperty = new UIntProperty( new PropertyBaseImplPtr( reinterpret_cast<UIntPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("Int64")) == 0 ) pProperty = new Int64Property( new PropertyBaseImplPtr( reinterpret_cast<Int64PropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("UInt64")) == 0 ) pProperty = new UInt64Property( new PropertyBaseImplPtr( reinterpret_cast<UInt64PropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("String")) == 0 ) pProperty = new StringProperty( new PropertyBaseImplPtr( reinterpret_cast<StringPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("Bool")) == 0 ) pProperty = new BoolProperty( new PropertyBaseImplPtr( reinterpret_cast<BoolPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("DateTime")) == 0 ) pProperty = new DateTimeProperty( new PropertyBaseImplPtr( reinterpret_cast<DateTimePropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("Float")) == 0 ) pProperty = new FloatProperty( new PropertyBaseImplPtr( reinterpret_cast<FloatPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("ByteArray")) == 0 ) pProperty = new ByteArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<ByteArrayPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("IntArray")) == 0 ) pProperty = new IntArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<IntArrayPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("UIntArray")) == 0 ) pProperty = new UIntArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<UIntArrayPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("Int64Array")) == 0 ) pProperty = new Int64ArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<Int64ArrayPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("UInt64Array")) == 0 ) pProperty = new UInt64ArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<UInt64PropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("StringArray")) == 0 ) pProperty = new StringArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<StringArrayPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("BoolArray")) == 0 ) pProperty = new BoolArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<BoolArrayPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("DateTimeArray")) == 0 ) pProperty = new DateTimeArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<DateTimeArrayPropertyImpl *>(pPropImpl) ) );			else if ( ::strcmp(type, IntelMobileText("FloatArray")) == 0 ) pProperty = new FloatArrayProperty( new PropertyBaseImplPtr( reinterpret_cast<FloatArrayPropertyImpl *>(pPropImpl) ) );			else 				pProperty = new Property( NULL, IntelMobileText("DummyProperty") );		}	}			if ( pProperty == NULL )		pProperty = new Property( NULL, IntelMobileText("DummyProperty") );	//if(nametype)		pProperty->SetNameType( nametype );	/*else		pProperty->SetNameType( type );*/	pPropertyMap->insert( it, pair<IntelMobileString, Property*>(namestr, pProperty) );	return pProperty;}//==============================================================================// IsAvailable()//==============================================================================bool InstanceObject::IsAvailable(  IntelMobileChar* methodName ){ 	if ( m_pImpl )	{		return (*reinterpret_cast<InstanceObjectImplPtr*>(m_pImpl))->IsAvailable( methodName );	}    return false;}//==============================================================================

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情第一区| 国产九色sp调教91| 亚洲综合在线五月| 亚洲免费在线观看视频| 亚洲同性gay激情无套| 亚洲欧美一区二区在线观看| 国产精品无人区| 国产精品不卡视频| 国产精品高潮呻吟久久| 亚洲欧洲中文日韩久久av乱码| 国产精品精品国产色婷婷| 国产精品区一区二区三| 国产精品成人免费在线| 亚洲欧美一区二区在线观看| 亚洲精品免费一二三区| 亚洲成人免费视频| 免费不卡在线观看| 国产呦精品一区二区三区网站| 国产成人亚洲综合色影视| 国产成人av电影在线观看| 成人中文字幕在线| 一本到不卡精品视频在线观看 | 丁香婷婷深情五月亚洲| 丰满亚洲少妇av| 一本在线高清不卡dvd| 欧美亚洲综合一区| 欧美一级日韩不卡播放免费| 久久久一区二区三区| 国产精品美女久久久久久久| 一区二区三区美女| 日本伊人午夜精品| 国产成人免费xxxxxxxx| 91在线国产福利| 制服丝袜中文字幕一区| 久久久久99精品国产片| 亚洲欧美色综合| 日本欧美一区二区| 成人爽a毛片一区二区免费| 欧美综合视频在线观看| 日韩精品一区二区三区在线| 国产精品欧美一区喷水| 天天av天天翘天天综合网 | 99久久久国产精品| 欧美日韩在线播放| 久久九九99视频| 亚洲国产精品视频| 国产乱码精品1区2区3区| 在线中文字幕一区二区| 精品乱人伦小说| 亚洲乱码中文字幕| 国内欧美视频一区二区| 色网站国产精品| 久久久久国产精品人| 亚洲一区在线观看视频| 国产成人在线影院| 欧美顶级少妇做爰| 亚洲日本在线a| 国产精品资源站在线| 欧美性猛交xxxx黑人交| 国产欧美日本一区视频| 视频一区二区三区在线| www.性欧美| 久久亚洲二区三区| 午夜婷婷国产麻豆精品| 99这里只有精品| 亚洲精品在线一区二区| 午夜成人在线视频| 成人国产视频在线观看| 精品久久人人做人人爽| 亚洲成人自拍偷拍| 99在线热播精品免费| 久久久精品天堂| 免费观看在线色综合| 欧美性做爰猛烈叫床潮| 国产精品美女久久久久aⅴ| 久久国产精品区| 欧美片网站yy| 一区二区三区在线视频免费观看| 国产精品一区二区在线看| 69av一区二区三区| 亚洲国产精品视频| 一本色道亚洲精品aⅴ| 国产精品素人一区二区| 国产一区二区三区四区在线观看| 制服丝袜中文字幕一区| 亚洲18影院在线观看| 色综合久久88色综合天天| 国产精品国产a级| 粉嫩av亚洲一区二区图片| 久久综合一区二区| 精品亚洲porn| 精品福利一二区| 美女网站一区二区| 91精品蜜臀在线一区尤物| 亚洲无线码一区二区三区| 色哟哟一区二区三区| 成人欧美一区二区三区视频网页 | 成人性生交大片免费看中文网站| 精品欧美久久久| 精品一区二区三区影院在线午夜 | 欧美一区二区在线视频| 日韩在线一二三区| 欧美久久久一区| 日韩高清在线一区| 欧美一级一级性生活免费录像| 丝袜美腿亚洲色图| 777xxx欧美| 麻豆极品一区二区三区| 欧美成va人片在线观看| 国产一区二区毛片| 国产欧美日韩亚州综合| 大桥未久av一区二区三区中文| 国产精品免费人成网站| 91视频你懂的| 一区二区三区高清| 欧美日韩午夜在线| 免费看日韩精品| www久久精品| 成人精品免费看| 成人免费在线视频| 欧美亚洲国产一区二区三区| 亚洲r级在线视频| 精品少妇一区二区三区免费观看 | 国产99久久久精品| 国产精品福利在线播放| 日本精品视频一区二区| 五月天一区二区| 精品国产免费人成在线观看| 国产电影一区在线| 亚洲欧美激情一区二区| 欧美日韩国产免费一区二区| 麻豆精品精品国产自在97香蕉 | 丝瓜av网站精品一区二区| 精品美女在线观看| 成人免费视频视频在线观看免费| 亚洲精品一二三| 欧美一区二区三区四区高清| 国产精品一区二区黑丝 | 91一区二区三区在线播放| 亚洲成人在线免费| 久久品道一品道久久精品| 97se亚洲国产综合在线| 日韩在线一区二区| 国产精品久久久久一区二区三区共 | 国产精品一级在线| 一区二区视频在线| 日韩精品一区二区三区视频在线观看 | 不卡电影一区二区三区| 亚洲第一成年网| 国产丝袜在线精品| 欧美色手机在线观看| 国产麻豆成人传媒免费观看| 亚洲综合激情小说| 久久综合色综合88| 欧美亚洲一区二区三区四区| 激情综合亚洲精品| 亚洲午夜国产一区99re久久| 久久美女高清视频| 欧美日韩情趣电影| www.性欧美| 久久99精品网久久| 亚洲妇女屁股眼交7| 久久久777精品电影网影网 | 日韩精品在线看片z| 色综合久久中文综合久久97 | 日本精品免费观看高清观看| 国内精品视频一区二区三区八戒| 亚洲精品中文字幕乱码三区| 精品乱人伦小说| 欧美日韩中文精品| 99精品热视频| 国产一区二区免费在线| 亚洲综合激情网| 国产精品黄色在线观看| 久久亚洲综合色| 日韩午夜在线播放| 欧美三级乱人伦电影| 成人动漫在线一区| 国产乱码精品一区二区三区av | 日韩久久一区二区| 国产视频一区二区在线| 欧美刺激午夜性久久久久久久| 欧美中文字幕一区二区三区亚洲| 不卡一区中文字幕| 国产成人精品免费一区二区| 久久精品久久综合| 青青草精品视频| 五月婷婷综合激情| 一区二区三区欧美在线观看| 中文字幕一区在线观看视频| 国产亚洲精品bt天堂精选| 日韩免费高清视频| 欧美一级生活片| 欧美二区在线观看| 欧美夫妻性生活| 在线观看91av| 91精品国产综合久久久久久漫画| 欧美三级电影在线看| 欧美网站一区二区| 欧美系列一区二区|