• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ GetHandler函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中GetHandler函数的典型用法代码示例。如果您正苦于以下问题:C++ GetHandler函数的具体用法?C++ GetHandler怎么用?C++ GetHandler使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了GetHandler函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: GetPoint

void CTalentHolderServer::InsertDecentralTalent(const string& szName, uint32 uPoint)
{	
	uint32 uTalentPoint = GetPoint(szName);
	MapLessRuleTalent::iterator it = m_mapRuleTalent.find(szName);
	if (uPoint<=uTalentPoint)
	{
		if (it!=m_mapRuleTalent.end())
		{
			MultisetTalent& setTalent= it->second;
			setTalent.insert(uPoint);
		}
		else
		{
			MultisetTalent setTalent;
			setTalent.insert(uPoint);
			m_mapRuleTalent.insert(make_pair(szName, setTalent));
		}
		if (GetHandler()) GetHandler()->OnTalentAdded(szName,uPoint);
	}
	else
	{
		if (it!=m_mapRuleTalent.end())
		{
			MultisetTalent& setTalent= it->second;
			setTalent.insert(uTalentPoint);
		}
		else  if(uTalentPoint!=0)
		{
			MultisetTalent setTalent;
			setTalent.insert(uTalentPoint);
			m_mapRuleTalent.insert(make_pair(szName, setTalent));
		}
		InsertTalent(szName,uPoint);
	}
}
开发者ID:svn2github,项目名称:ybtx,代码行数:35,代码来源:CTalentEffServer.cpp


示例2: GetHandler

void wxQtCalendarWidget::selectionChanged()
{
    wxCalendarCtrl *win = GetHandler();
    if ( win )
    {
        GetHandler()->GenerateAllChangeEvents(wxQtConvertDate(m_date));
        m_date = selectedDate();
    }
}
开发者ID:jfiguinha,项目名称:Regards,代码行数:9,代码来源:calctrl.cpp


示例3: close

int boss::UdpHandlerBase::HandleClose()
{
    if(GetHandler() != -1)
    {
        close(GetHandler());
        SetHandler(-1);
	}

	return 0;
}
开发者ID:QEver,项目名称:vosproj,代码行数:10,代码来源:reactor.cpp


示例4: h

string CConnection::GetErrorInfo()
{
    CNcbiOstrstream out;
    CDB_UserHandler_Stream h(&out);
    h.HandleIt(GetHandler()->GetMultiEx());
    // Install new handler
    GetHandler()->ReplaceMultiEx();
/*
    GetCDB_Connection()->PopMsgHandler(GetHandler());
    delete m_multiExH;
    m_multiExH = new CToMultiExHandler;
    GetCDB_Connection()->PushMsgHandler(GetHandler());
*/
    return CNcbiOstrstreamToString(out);
}
开发者ID:svn2github,项目名称:ncbi_tk,代码行数:15,代码来源:conn_impl.cpp


示例5: dump_debug_info

/*	dump_debug_info()	*/
static VALUE dump_debug_info(VALUE obj)
{
    MYSQL* m = GetHandler(obj);
    if (mysql_dump_debug_info(m) != 0)
	mysql_raise(m);
    return obj;
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:8,代码来源:mysql.c


示例6: NS_ENSURE_TRUE

already_AddRefed<sbIDeviceFirmwareHandler>
sbDeviceFirmwareUpdater::GetRunningHandler(sbIDevice *aDevice, 
                                           PRUint32 aVendorID,
                                           PRUint32 aProductID,
                                           sbIDeviceEventListener *aListener, 
                                           PRBool aCreate)
{
  NS_ENSURE_TRUE(aDevice, nsnull);

  sbIDeviceFirmwareHandler *_retval = nsnull;

  nsCOMPtr<sbIDeviceFirmwareHandler> handler;
  if(!mRunningHandlers.Get(aDevice, getter_AddRefs(handler)) && aCreate) {
    nsresult rv = GetHandler(aDevice, 
                             aVendorID, 
                             aProductID, 
                             getter_AddRefs(handler));
    NS_ENSURE_SUCCESS(rv, nsnull);

    rv = handler->Bind(aDevice, aListener);
    NS_ENSURE_SUCCESS(rv, nsnull);

    rv = PutRunningHandler(aDevice, handler);
    NS_ENSURE_SUCCESS(rv, nsnull);
  }

  if(handler) {
    handler.forget(&_retval);
  }

  return _retval;
}
开发者ID:AntoineTurmel,项目名称:nightingale-hacking,代码行数:32,代码来源:sbDeviceFirmwareUpdater.cpp


示例7: RomInfo

RomInfo *GameHandler::CreateRomInfo(RomInfo *parent)
{
    if (!parent || !GetHandler(parent))
        return NULL;

    return new RomInfo(*parent);
}
开发者ID:killerkiwi,项目名称:mythtv,代码行数:7,代码来源:gamehandler.cpp


示例8: sizeof

void CDPClient::UserMessageHandler( LPDPMSG_GENERIC lpMsg, DWORD dwMsgSize, DPID idFrom )
{
	static size_t	nSize	= sizeof(DPID);

#ifdef __CRASH_0404
	CCrashStatus::GetInstance()->SetLastPacket( this, 0xEEEEEEEE );
#endif	// __CRASH_0404

	LPBYTE lpBuf	= (LPBYTE)lpMsg + nSize;
	ULONG	uBufSize	= dwMsgSize - nSize;
	DPID dpidUser	= *(UNALIGNED LPDPID)lpMsg;

	CAr ar( lpBuf, uBufSize );
	GETTYPE( ar );

	void ( theClass::*pfn )( theParameters )	=	GetHandler( dw );
	
#ifdef __CRASH_0404
	CCrashStatus::GetInstance()->SetLastPacket( this, dw );
#endif	// __CRASH_0404

	if( pfn )
		( this->*( pfn ) )( ar, dpidUser, lpMsg, dwMsgSize );
	else
		g_DPCacheSrvr.Send( lpBuf, uBufSize, dpidUser );

#ifdef __CRASH_0404
	CCrashStatus::GetInstance()->SetLastPacket( this, 0xFFFFFFFF );
#endif	// __CRASH_0404
}
开发者ID:KerwinMa,项目名称:AerothFlyffSource,代码行数:30,代码来源:DPClient.cpp


示例9: ping

/*	ping()		*/
static VALUE ping(VALUE obj)
{
    MYSQL* m = GetHandler(obj);
    if (mysql_ping(m) != 0)
	mysql_raise(m);
    return obj;
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:8,代码来源:mysql.c


示例10: OnCreate

	void CoreDelegateImpl::OnCreate()
	{
		auto p_load_manager = Core::GetGlobalObject<Resources::ResourceManager>();
		p_load_manager->LoadResourceSet("..\\..\\..\\Resources\\ResourceSets\\ui_testing.res");

		auto p_ui_system = Core::GetGlobalObject<UI::UIControlSystem>();
		p_ui_system->LoadScheme("..\\..\\..\\Resources\\UI\\test.scheme");
		p_ui_system->UnloadScheme("test");
		p_ui_system->SetActiveScheme("test");
		auto scheme_handler = p_ui_system->LoadScheme("..\\..\\..\\Resources\\UI\\TestUIProfile.scheme");				
		p_ui_system->SetActiveScheme(scheme_handler);
		auto accessor = p_ui_system->CreateControl<UI::UIButton>();
		p_ui_system->RemoveControl(accessor.GetHandler());
		auto accessor1 = p_ui_system->CreateControl<UI::UIButton>();

		auto& msg_dsp = p_ui_system->GetMessageDispatcher();
		msg_dsp.RegisterHandler<TestHandler, UI::UIButtonEvent>(handler, &TestHandler::Handle, "exit_button");

		connection = SDK::Connection(msg_dsp, handler, &TestHandler::Handle, "my_mega_button");		
		connection.disconnect();

		Log::Info("Render", Source, "Test message");
		Log::Info(0, Source, "{0}: {1}", "asdasd", 1);
		Log::Info(0, Source, "asdfasdf");
	}
开发者ID:vic-trouble,项目名称:SupportSDK,代码行数:25,代码来源:CoreDelegateImpl.cpp


示例11: GetHandler

void CFighterMediator::CppReborn()
{
	CFighterDictator::CppReborn();
	CEntityServer* pEntity = GetHandler()->GetEntity();
	pEntity->DisableDirectorMoving(false);
	pEntity->SetSizeType(eAIST_PlayerOrServant);	
}
开发者ID:svn2github,项目名称:ybtx,代码行数:7,代码来源:CFighterMediator.cpp


示例12: commit

/*	commit()	*/
static VALUE commit(VALUE obj)
{
    MYSQL* m = GetHandler(obj);
    if (mysql_commit(m) != 0)
        mysql_raise(m);
    return obj;
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:8,代码来源:mysql.c


示例13: LOG

NS_IMETHODIMP 
sbDeviceFirmwareUpdater::HasHandler(sbIDevice *aDevice, 
                                    PRUint32 aDeviceVendorID,
                                    PRUint32 aDeviceProductID,
                                    PRBool *_retval)
{
  LOG(("[sbDeviceFirmwareUpdater] - HasHandler"));

  NS_ENSURE_TRUE(mMonitor, NS_ERROR_NOT_INITIALIZED);
  NS_ENSURE_FALSE(mIsShutdown, NS_ERROR_ILLEGAL_DURING_SHUTDOWN);
  NS_ENSURE_ARG_POINTER(aDevice);
  NS_ENSURE_ARG_POINTER(_retval);

  nsCOMPtr<sbIDeviceFirmwareHandler> handler;
  nsresult rv = GetHandler(aDevice, 
                           aDeviceVendorID, 
                           aDeviceProductID, 
                           getter_AddRefs(handler));
  
  *_retval = PR_FALSE;
  if(NS_SUCCEEDED(rv)) {
    *_retval = PR_TRUE;
  }

  return NS_OK;
}
开发者ID:AntoineTurmel,项目名称:nightingale-hacking,代码行数:26,代码来源:sbDeviceFirmwareUpdater.cpp


示例14: select_db

/*	select_db(db)	*/
static VALUE select_db(VALUE obj, VALUE db)
{
    MYSQL* m = GetHandler(obj);
    if (mysql_select_db(m, StringValueCStr(db)) != 0)
	mysql_raise(m);
    return obj;
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:8,代码来源:mysql.c


示例15: reload

/*	reload()	*/
static VALUE reload(VALUE obj)
{
    MYSQL* m = GetHandler(obj);
    if (mysql_reload(m) != 0)
	mysql_raise(m);
    return obj;
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:8,代码来源:mysql.c


示例16: refresh

/*	refresh(r)	*/
static VALUE refresh(VALUE obj, VALUE r)
{
    MYSQL* m = GetHandler(obj);
    if (mysql_refresh(m, NUM2INT(r)) != 0)
	mysql_raise(m);
    return obj;
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:8,代码来源:mysql.c


示例17: rollback

/*	rollback()	*/
static VALUE rollback(VALUE obj)
{
    MYSQL* m = GetHandler(obj);
    if (mysql_rollback(m) != 0)
        mysql_raise(m);
    return obj;
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:8,代码来源:mysql.c


示例18: use_result

/*	use_result()	*/
static VALUE use_result(VALUE obj)
{
    MYSQL* m = GetHandler(obj);
    MYSQL_RES* res = mysql_use_result(m);
    if (res == NULL)
	mysql_raise(m);
    return mysqlres2obj(res);
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:9,代码来源:mysql.c


示例19: my_stat

/*	stat()		*/
static VALUE my_stat(VALUE obj)
{
    MYSQL* m = GetHandler(obj);
    const char* s = mysql_stat(m);
    if (s == NULL)
	mysql_raise(m);
    return rb_tainted_str_new2(s);
}
开发者ID:BackupTheBerlios,项目名称:dryon-svn,代码行数:9,代码来源:mysql.c


示例20: GetHandler

void wxQtAction::onActionTriggered( bool checked )
{
    wxMenuItem *handler = GetHandler();
    wxMenu *menu = handler->GetMenu();
    if ( handler->IsCheckable() )
        handler->Check(checked);
    menu->SendEvent( handler->GetId(), handler->IsCheckable() ? checked : -1 );
}
开发者ID:catalinr,项目名称:wxWidgets,代码行数:8,代码来源:menuitem.cpp



注:本文中的GetHandler函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GetHead函数代码示例发布时间:2022-05-30
下一篇:
C++ GetHandleSize函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap