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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? base_instanceobject_impl.cpp

?? 270的linux說明
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
// GetPropertyImplByName()//==============================================================================PropertyBaseImpl* InstanceObjectImpl::GetPropertyImplByName(  IntelMobileChar* name, IntelMobileChar* type ){ 	IntelMobileString namestr = name;	PROPERTYIMPLMAP::iterator it = m_Properties.find( namestr );	if ( it != m_Properties.end() )		return (*it).second;		if ( GetProperty( name ) == NULL ) // property is not support by the device		return NULL;	PropertyBaseImpl* pProperty = NULL;	if ( m_pSvrInstObj )	{		if ( ::strcmp(type, IntelMobileText("Byte")) == 0 ) pProperty = new BytePropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("Int")) == 0 ) pProperty = new IntPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("UInt")) == 0 ) pProperty = new UIntPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("Int64")) == 0 ) pProperty = new Int64PropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("UInt64")) == 0 ) pProperty = new UInt64PropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("String")) == 0 ) pProperty = new StringPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("Bool")) == 0 ) pProperty = new BoolPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("DateTime")) == 0 ) pProperty = new DateTimePropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("Float")) == 0 ) pProperty = new FloatPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("ByteArray")) == 0 ) pProperty = new ByteArrayPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("IntArray")) == 0 ) pProperty = new IntArrayPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("UIntArray")) == 0 ) pProperty = new UIntArrayPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("Int64Array")) == 0 ) pProperty = new Int64ArrayPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("UInt64Array")) == 0 ) pProperty = new UInt64ArrayPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("StringArray")) == 0 ) pProperty = new StringArrayPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("BoolArray")) == 0 ) pProperty = new BoolArrayPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("DateTimeArray")) == 0 ) pProperty = new DateTimeArrayPropertyImpl( name, this );		else if ( ::strcmp(type, IntelMobileText("FloatArray")) == 0 ) pProperty = new FloatArrayPropertyImpl( name, this );	}			if ( pProperty )		m_Properties.insert( it, pair<IntelMobileString, PropertyBaseImpl*>(namestr, pProperty) );	return pProperty;}//==============================================================================// IsAvailable()//==============================================================================bool InstanceObjectImpl::IsAvailable(  IntelMobileChar* methodName ){ 	EnterCriticalSection(&m_csIpc);	bool bAvailable = false;    if ( m_pSvrInstObj )    {        //bAvailable = m_pSvrInstObj->IsAvailable( methodName );		//IPC support		vector<string> vectParam, vectRtn;        vectParam.push_back(IntelMobileText("IsAvailable"));        vectParam.push_back(CStringHelper::Param2Str(methodName));		HRESULT hr = GetIpcClient()->IpcCall(m_nDataType, GetSvrObj(), vectParam, vectRtn);		if ( FAILED( hr ) )		{			  IntelMobileException ex( IntelMobileText("Error IsAvailable for InstanceObject"), IntelMobileText("InstanceObject"), IntelMobileText("IsAvailable"), hr );			LeaveCriticalSection(&m_csIpc);            throw( ex );  		}		else		{			CStringHelper::Str2Param(vectRtn[0], bAvailable);		}    }    else    {        InvalidInterfaceException ex( IntelMobileText("InstanceObjectImpl"), IntelMobileText("IsAvailable") );		LeaveCriticalSection(&m_csIpc);        throw( ex );     }	LeaveCriticalSection(&m_csIpc);    return bAvailable;}//==============================================================================// IsEventAvailable() //==============================================================================bool InstanceObjectImpl::IsEventAvailable( Event::EventType eType ){	EnterCriticalSection(&m_csIpc);    bool bAvailable = false;    if ( m_pSvrInstObj )    {        //bAvailable = m_pSvrInstObj->IsEventAvailable( eType) ;		//IPC support		vector<string> vectParam, vectRtn;        vectParam.push_back(IntelMobileText("IsEventAvailable"));        vectParam.push_back(CStringHelper::Param2Str(eType));		//cout << "eType: " << eType << endl;		HRESULT hr = GetIpcClient()->IpcCall(m_nDataType, GetSvrObj(), vectParam, vectRtn);		if ( FAILED( hr ) )		{			  IntelMobileException ex( IntelMobileText("Error IsEventAvailable for InstanceObject"), IntelMobileText("InstanceObject"), IntelMobileText("IsEventAvailable"), hr );			LeaveCriticalSection(&m_csIpc);            throw( ex );  		}		else		{			CStringHelper::Str2Param(vectRtn[0], bAvailable);		}    }    else    {        InvalidInterfaceException ex( IntelMobileText("InstanceObject"), IntelMobileText("IsEventAvailable") );		LeaveCriticalSection(&m_csIpc);        throw( ex );     }	LeaveCriticalSection(&m_csIpc);    return bAvailable;} // IsEventAvailable() IntelMobileChar*  InstanceObjectImpl::GetType (){	EnterCriticalSection(&m_csIpc);	if ( m_pSvrInstObj )    {		//XXX: memeory leak risk?		IntelMobileChar *pszType, *buf;		//IPC support		vector<string> vectParam, vectRtn;        vectParam.push_back(IntelMobileText("GetType"));		HRESULT hr = GetIpcClient()->IpcCall(m_nDataType, GetSvrObj(), vectParam, vectRtn);		if ( FAILED( hr ) )		{			  IntelMobileException ex( IntelMobileText("Error GetType for InstanceObject"), IntelMobileText("InstanceObject"), IntelMobileText("GetType"), hr );			LeaveCriticalSection(&m_csIpc);            throw( ex );  		}		else		{			CStringHelper::Str2Param(vectRtn[0], pszType);		//pszType = ::strcpy(new IntelMobileChar[::strlen(buf) + 1], buf);			LeaveCriticalSection(&m_csIpc);			return pszType;		}    }    else    {        InvalidInterfaceException ex( IntelMobileText("InstanceObject"), IntelMobileText("IsEventAvailable") );		LeaveCriticalSection(&m_csIpc);        throw( ex );     }	LeaveCriticalSection(&m_csIpc);}IntelMobileChar*  InstanceObjectImpl::GetKey  (){	EnterCriticalSection(&m_csIpc);	if ( m_pSvrInstObj )    {		//XXX: memeory leak risk?		IntelMobileChar *pszKey, *buf;		//IPC support		vector<string> vectParam, vectRtn;        vectParam.push_back(IntelMobileText("GetKey"));		HRESULT hr = GetIpcClient()->IpcCall(m_nDataType, GetSvrObj(), vectParam, vectRtn);		if ( FAILED( hr ) )		{			IntelMobileException ex( IntelMobileText("Error GetKey for InstanceObject"), IntelMobileText("InstanceObject"), IntelMobileText("GetKey"), hr );			LeaveCriticalSection(&m_csIpc);            throw( ex );  		}		else		{			CStringHelper::Str2Param(vectRtn[0], pszKey);			//pszKey = ::strcpy(new IntelMobileChar[::strlen(buf) + 1], buf);			LeaveCriticalSection(&m_csIpc);			return pszKey;		}    }    else    {        InvalidInterfaceException ex( IntelMobileText("InstanceObject"), IntelMobileText("IsEventAvailable") );		LeaveCriticalSection(&m_csIpc);        throw( ex );     }	LeaveCriticalSection(&m_csIpc);}bool InstanceObjectImpl::AddObserver   ( Intel::Mobile::BaseAPI::Event::EventType eType, ObserverImpl& observer ){	HRESULT hr = E_POINTER;	//use the this pointer as the Client Event Subject	hr = DoSubscribe(eType, reinterpret_cast<void *>(this));	if(SUCCEEDED(hr))	{		observer.AddEventClient(this);		m_vObservers.push_back(ObserverMap(&observer, eType));	}	else	{		IntelMobileException ex( IntelMobileText("Failure Add Observer for Instance Object"), IntelMobileText("InstaceObject"), IntelMobileText("AddObserver"), hr );		throw( ex );	}	return SUCCEEDED(hr);}bool InstanceObjectImpl::RemoveObserver( Intel::Mobile::BaseAPI::Event::EventType eType, ObserverImpl& observer ){    bool bRemoved = false;    EventClientImplPtr spRemoved = observer.RemoveEventClient( this );    if ( spRemoved != NULL )    {        InstanceObjectImplPtr spClass( *reinterpret_cast<InstanceObjectImpl**>(&spRemoved) );								                spClass->m_vObservers.remove( ObserverMap(&observer,eType) );	        HRESULT hr = UnDoSubscribe( eType, reinterpret_cast<void *>(this) );        if (FAILED(hr))        {           IntelMobileException ex( IntelMobileText("Call UnsubscribeEvent error"), IntelMobileText("InstaceObject"), IntelMobileText("RemoveObserver"), hr );           throw( ex );         }       /* else        {            IntelMobileException ex( IntelMobileText("Failure RemoveObserver for Instance Object"), IntelMobileText("InstanceObserver"), IntelMobileText("RemoveObserver"), 0x80047002 );            throw( ex );         }*/        bRemoved = true;    }    return bRemoved;}bool InstanceObjectImpl::EventFired( LONG lType, time_t lTimeStamp ){    // Create an event object passing in the type of event and the     // address of the public object that ownes this impl object.    Event::EventType eType = static_cast<Event::EventType>(lType);    //============================================================    //		  The retreival of the identifying data is called in the     //        context of the server thread. This can throw an exception     //        which would cause problems with the interface.    //            IntelMobileString strKey;    try    {        IntelMobileChar* pszKey = GetType();        strKey = pszKey;        delete[] pszKey;    }    catch ( IntelMobileException ex )    {        strKey = IntelMobileText("Unknown");    }    //============================================================    // Duplicated the use of pszKey as the class key IS the class type.    //            Event theEvent( eType, new InstanceObjectImplPtr( this),                     IntelMobileText("InstanceObject"), strKey.c_str(), strKey.c_str() );    theEvent.SetTimestamp( lTimeStamp );  // Copy in the server timestamp.    _Log( LOG_DEBUG_FRAMEWORK, IntelMobileText("Class event of type %s fired, timestamp = %s"),                                theEvent.GetTypeName(), theEvent.GetTSstring() );    // Now notify all the local observers    ObserverCollection::const_iterator ittr;    m_vObservers.Lock();     try    {        for ( ittr = m_vObservers.begin(); ittr < m_vObservers.end(); ++ittr )        {            if ( ittr->second == eType )            {                ittr->first->Notify( theEvent );            }        }    }    catch ( ... )     {        _Log( LOG_SOFT_ERROR, _T("EventFired: Exception calling Observer's Notify function"));    }    m_vObservers.Unlock();        return true;} // EventFired() 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美少妇bbb| xnxx国产精品| 国产精品一区在线观看乱码| 亚洲一区二区三区爽爽爽爽爽 | 久久综合色8888| 伊人夜夜躁av伊人久久| 国产欧美日本一区视频| 精品久久人人做人人爱| 日韩欧美国产成人一区二区| 日韩一区二区三区四区五区六区| 日韩欧美中文字幕制服| 一区二区激情视频| 日本成人在线网站| 国产一二三精品| 99精品欧美一区二区蜜桃免费| 成人一区二区三区视频| 成人免费av资源| 精品国产乱码久久久久久老虎 | 国产欧美日本一区二区三区| 精品在线你懂的| 国产精品1024| 色女孩综合影院| 国产成人av一区二区| 日韩一卡二卡三卡国产欧美| 天天综合色天天综合| 麻豆精品新av中文字幕| 99久久免费视频.com| 亚洲国产精品激情在线观看| 亚洲国产精品久久一线不卡| 国产美女av一区二区三区| 欧美成人精品二区三区99精品| 日韩高清电影一区| 日韩一区二区三区免费观看| 麻豆高清免费国产一区| 日韩免费在线观看| 激情久久五月天| 欧美午夜精品理论片a级按摩| 亚洲欧美日韩中文字幕一区二区三区| 一区二区高清视频在线观看| 在线视频综合导航| 2024国产精品| 成人激情开心网| 欧美一区二区福利在线| 亚洲靠逼com| 欧美视频一二三区| 日韩电影一二三区| 26uuu国产电影一区二区| 国产精品66部| 一区二区在线电影| 欧美精品久久久久久久久老牛影院| 久久久久99精品一区| 三级欧美韩日大片在线看| 9久草视频在线视频精品| 久久久久久久久久久久久久久99| 成人一区二区视频| 亚洲主播在线观看| 欧美成人一区二区三区在线观看 | 日韩精品一卡二卡三卡四卡无卡| 日韩精品一区二区在线观看| 成人精品小蝌蚪| 亚洲一区二区三区四区不卡| www国产成人| 色狠狠一区二区| 激情五月激情综合网| 亚洲色图制服丝袜| 成人免费福利片| 日韩国产欧美在线视频| 亚洲国产成人午夜在线一区| 欧美日韩不卡一区二区| 午夜精品免费在线| 久久久久久黄色| 欧美日韩中文一区| 亚洲国产综合91精品麻豆| 久久亚洲一级片| 欧美丝袜丝交足nylons图片| 国产99久久久精品| 国产精品国产三级国产三级人妇| 国产精品白丝jk黑袜喷水| 亚洲自拍偷拍九九九| 久久精品视频一区二区三区| 成人午夜电影小说| 丝袜亚洲另类丝袜在线| 国产精品天美传媒| 色94色欧美sute亚洲13| 国产激情偷乱视频一区二区三区| 五月激情综合色| 一区二区三区四区在线播放| 国产女同互慰高潮91漫画| 欧美一区二区啪啪| 欧美剧情片在线观看| 成人av在线一区二区三区| 韩国成人福利片在线播放| 日日摸夜夜添夜夜添国产精品| 亚洲日本电影在线| 欧美激情综合在线| 精品国产伦一区二区三区观看方式 | 成人不卡免费av| 国产精品影视在线观看| 久久se精品一区二区| 亚洲国产精品成人综合| 欧美xxxxx牲另类人与| 欧美久久久久免费| 欧美日韩高清不卡| 欧美性猛片aaaaaaa做受| 99精品视频在线观看免费| 国产suv精品一区二区883| 国产成人免费视频精品含羞草妖精| 蜜桃久久久久久| 蜜桃久久精品一区二区| 美女免费视频一区二区| 日韩在线a电影| 日本美女一区二区三区视频| 日韩精品电影一区亚洲| 午夜天堂影视香蕉久久| 亚洲电影激情视频网站| 亚洲国产精品精华液ab| 国产精品天干天干在观线| 中文字幕乱码亚洲精品一区| 中文字幕高清一区| 国产精品网站在线观看| 亚洲色图在线视频| 亚洲一区二区视频| 首页国产欧美日韩丝袜| 美腿丝袜一区二区三区| 国产一区在线看| 丰满放荡岳乱妇91ww| 99久久综合狠狠综合久久| 一本大道av伊人久久综合| 在线观看不卡一区| 在线播放欧美女士性生活| 日韩精品中文字幕在线不卡尤物 | 欧美久久久久久蜜桃| 精品久久久三级丝袜| 亚洲国产高清在线| 亚洲人成小说网站色在线| 亚洲chinese男男1069| 久久国内精品视频| a亚洲天堂av| 欧美日韩高清不卡| 国产拍揄自揄精品视频麻豆| 亚洲精品成人a在线观看| 免费欧美高清视频| 亚欧色一区w666天堂| 激情文学综合网| 色婷婷综合中文久久一本| 在线不卡中文字幕| 欧美—级在线免费片| 亚洲午夜一区二区| 国产成人免费网站| 亚洲一区二区中文在线| 久久黄色级2电影| 成人aaaa免费全部观看| 欧美色老头old∨ideo| 日韩欧美成人午夜| 亚洲欧美韩国综合色| 久久精品国产在热久久| 99久久精品国产导航| 日韩视频在线你懂得| 中文字幕一区二区三中文字幕| 欧美一区二区三区免费大片 | 国产精品久久久一本精品 | 欧美一区日韩一区| 国产精品女主播av| 麻豆成人综合网| 欧美在线观看一二区| 久久久久国产精品麻豆| 日韩和的一区二区| 色综合久久综合网欧美综合网 | 精品人在线二区三区| 亚洲五月六月丁香激情| 国产91丝袜在线播放0| 日韩欧美成人一区| 亚洲午夜电影在线| 色综合天天综合狠狠| 99久久伊人网影院| 久久一区二区三区四区| 天天影视网天天综合色在线播放| 成人免费高清在线| 国产亚洲精品久| 久久精品国产亚洲5555| 91麻豆精品国产91久久久久久 | 欧美午夜免费电影| 亚洲品质自拍视频| 国产91露脸合集magnet| 欧美一区二区啪啪| 日韩精品五月天| 精品污污网站免费看| 国产精品福利一区二区三区| 国产精品1024| 久久久久久久综合色一本| 精品一区二区三区视频在线观看 | 欧美日韩色一区| 一级中文字幕一区二区| 色94色欧美sute亚洲线路一久 | 精品一区二区精品| 精品少妇一区二区三区在线视频| 视频一区欧美精品| 日韩三级精品电影久久久| 日日骚欧美日韩| 欧美xxxxx牲另类人与|