当前位置: 首页>>代码示例>>C++>>正文


C++ GetHandler函数代码示例

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


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


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