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

C++ GetManager函数代码示例

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

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



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

示例1: SIPEndPoint

/* The class */
Opal::Sip::EndPoint::EndPoint (Opal::EndPoint & _endpoint,
                               const Ekiga::ServiceCore& _core): SIPEndPoint (_endpoint),
                                                                 core (_core)
{
  /* Timeouts */
  SetRetryTimeouts (500, 4000);
  SetMaxRetries (20);

  /* Update the User Agent */
  SetUserAgent ("Ekiga/" PACKAGE_VERSION);

  /* Ready to take calls */
  GetManager ().AddRouteEntry("sip:.* = pc:*");
  GetManager ().AddRouteEntry("pc:.* = sip:<da>");

  /* Keepalive */
  PTimeInterval timeout;
  KeepAliveType type;
  GetKeepAlive (timeout, type);
  SetKeepAlive (timeout, KeepAliveByOPTION);
}
开发者ID:GNOME,项目名称:ekiga,代码行数:22,代码来源:sip-endpoint.cpp


示例2:

/* virtual */
OP_STATUS
OpScopeConsoleLogger::OnPostInitialization()
{
#ifdef SCOPE_WINDOW_MANAGER_SUPPORT
	if (OpScopeServiceManager *manager = GetManager())
		window_manager = OpScopeFindService<OpScopeWindowManager>(manager, "window-manager");
	if (!window_manager)
		return OpStatus::ERR_NULL_POINTER;
#endif // SCOPE_WINDOW_MANAGER_SUPPORT

	return OpStatus::OK;
}
开发者ID:prestocore,项目名称:browser,代码行数:13,代码来源:scope_console_logger.cpp


示例3: GetManager

void DisplayElement::SetManager (DisplayManager *pManager)
{
	if (pManager != GetManager())
	{
		DisplayManager *pOldManager = GetManager();
		mManager.Set(pManager);

		if (pOldManager)
		{
			pOldManager->RemoveElementReferences(this); // remove all references to this element
		}

		// Propogate down the tree
		DisplayElement *pChild = mpFirstChild;
		while (pChild)
		{
			pChild->SetManager(pManager);
			pChild = pChild->mpNext;
		}
	}
}
开发者ID:peteratebs,项目名称:webcwebbrowser,代码行数:21,代码来源:delement.cpp


示例4: OnSkinChange

int CPluginWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if ( CMDIChildWnd::OnCreate( lpCreateStruct ) == -1 ) return -1;

	m_bAlert = 1982;
	OnSkinChange();
	m_bAlert = FALSE;

	GetManager()->Add( this );

	return 0;
}
开发者ID:ericfillipe1,项目名称:shareaza-code,代码行数:12,代码来源:WndPlugin.cpp


示例5: GetManager

bool ButtonBase::OnMouseUp(float x, float y, int button)
{
	if( GetManager()->GetCapture() == this )
	{
		GetManager()->SetCapture(NULL);
		bool click = (GetState() == statePushed);
		WindowWeakPtr wwp(this);
		if( eventMouseUp )
			INVOKE(eventMouseUp) (x, y); // handler may destroy this object
		if( click && wwp.Get() )
		{
			OnClick();                   // handler may destroy this object
			if( eventClick && wwp.Get() )
				INVOKE(eventClick) ();   // handler may destroy this object
		}
		if( wwp.Get() && GetEnabled() )  // handler may disable this button
			SetState(stateHottrack);
		return true;
	}
	return false;
}
开发者ID:Asqwel,项目名称:TZOD-Modified,代码行数:21,代码来源:Button.cpp


示例6: GetManager

int ManagerList::GetConnectionRate(TargetType type)
{
	int m, mgr_count, mgr_result;

	if (!(mgr_count = ManagerCount(type)))
		return AMBIGUOUS_VALUE;

	// Get the value of the first manager.
	mgr_result = GetManager(0, type)->GetConnectionRate(type);

	// Compare each manager's value with the first manager.
	for (m = 1; m < mgr_count; m++) {
		if (GetManager(m, type)->WorkerCount(type) &&
		    mgr_result != GetManager(m, type)->GetConnectionRate(type)) {
			// The values are not the same.
			return AMBIGUOUS_VALUE;
		}
	}
	// All managers have the same value.
	return mgr_result;
}
开发者ID:BackupTheBerlios,项目名称:iometer-svn,代码行数:21,代码来源:ManagerList.cpp


示例7: PreUpdate

void dAnimIKController::PreUpdate(dFloat timestep, int threadIndex)
{
//	dAssert(0);
//	RigidBodyToStates();
	if (m_animationTree) {
		m_animationTree->Update(timestep);
	}
//	m_solver.Update(timestep);
//	UpdateJointAcceleration();
	dAnimIKManager* const manager = (dAnimIKManager*)GetManager();
	manager->UpdatePlayer(this, timestep);
}
开发者ID:MADEAPPS,项目名称:newton-dynamics,代码行数:12,代码来源:dAnimIKController.cpp


示例8: return

 //
 // Get the fallback placement
 //
 Placement * Placement::GetFallback()
 {
   if (fallback.Null())
   {
     return (NULL);
   }
   else
   {
     LOG_AI(("Getting fallback '%s'", fallback.str))
     return (&GetManager().GetPlacement(fallback));
   }
 }
开发者ID:ZhouWeikuan,项目名称:darkreign2,代码行数:15,代码来源:strategic_placement.cpp


示例9: ErrorMessage

//
// Verify that all assigned configuration parameters are valid.
//
BOOL ManagerList::InvalidSetup()
{
	int		m, w;
	Manager	*mgr;
	Worker	*wkr;
	BOOL	nonidle_worker_with_targets = FALSE;
	BOOL	all_workers_idle = TRUE;

	// Verify that at least one spec was assigned, even if Idle.
	if ( !GetMaxAccessSpecCount() )
	{
		ErrorMessage( "You must assign at least one access specification "
			"to a worker." );
		return TRUE;
	}

	// We need to loop through all workers of all managers to verify
	// their assigned specs are valid.
	for ( m = 0; m < ManagerCount(); m++ )
	{
		mgr = GetManager( m );
		if ( mgr->InvalidSetup() )
			return TRUE;

		// Verify that at least one worker has targets assigned with a
		// non-idle spec or all specs are idle.
		for ( w = 0; w < mgr->WorkerCount(); w++ )
		{
			wkr = mgr->GetWorker( w );

			// Keep track if all workers have only the idle spec.
			if ( wkr->AccessSpecCount() != wkr->IdleAccessSpecCount() )
			{
				all_workers_idle = FALSE;

				// Keep track if any non-idle worker has targets.
				if ( wkr->TargetCount() )
					nonidle_worker_with_targets = TRUE;
			}
		}
	}

	// Verify that at least one worker has targets assigned with a
	// non-idle spec or all specs are idle.
	if ( !all_workers_idle && !nonidle_worker_with_targets )
	{
		ErrorMessage( "If no worker has targets selected, then all workers "
			"must have the idle spec assigned." );
		return TRUE;
	}

	return FALSE;
}
开发者ID:BackupTheBerlios,项目名称:iometer-svn,代码行数:56,代码来源:ManagerList.cpp


示例10:

bool 
Iop::PowerOff( SsapiResponder *pResponder ){

	if( m_serviceState ){
		pResponder->RespondToRequest( SSAPI_EXCEPTION_INVALID_STATE, CTS_SSAPI_EXCEPTION_DEVICE_IN_SERVICE );
		return true;
	}

	((DeviceManager *)GetManager())->ChangeIopPowerState(	this,
															true,
															pResponder );
	return true;
}
开发者ID:JoeAltmaier,项目名称:Odyssey,代码行数:13,代码来源:Iop.cpp


示例11: UIWindow

Dialog::Dialog(UIWindow *parent, float width, float height, bool modal)
  : UIWindow(/*modal ? new Substrate(parent) :*/ parent)
  , _mouseX(0)
  , _mouseY(0)
  , _easyMove(false)
{
	SetTexture("ui/window", false);
	Resize(width, height);
    Move(std::floor((parent->GetWidth() - GetWidth()) / 2), std::floor((parent->GetHeight() - GetHeight()) / 2));
	SetDrawBorder(true);
	SetDrawBackground(true);
	GetManager().SetFocusWnd(this);
}
开发者ID:olitvinenko,项目名称:battle_tanks,代码行数:13,代码来源:Dialog.cpp


示例12: GetManager

	~ManagerMediator()
	{
		MT4Adapter::IntegrationMT4Server* manager = GetManager();

		if (manager != NULL)
		{
			manager->UnInitialize();
		}

		CloseHandle(_mutexHandle);
		_mutexHandle = NULL;
		gcHandle.Free();
	}
开发者ID:dwmcqueen,项目名称:opencryptoplatform,代码行数:13,代码来源:Integration.Orig.cpp


示例13: GetManager

// ok, this is a silly thing to do but it will work.
void HTMLBodyDisplay::SetHtmlFocus (HTMLElement *pElement)
{
	if (!GetManager())
	{
		return;
	}

	if (!(mKeyCatcher1.mFlags & DISPLAY_FLAG_FOCUS) && (mKeyCatcher2.GetElement() != pElement))
	{
		// this is the default case
		mKeyCatcher1.SetElement(pElement);
		GetManager()->SetFocus(&mKeyCatcher1);
		mKeyCatcher2.SetElement(0);
	}
	else if (!(mKeyCatcher2.mFlags & DISPLAY_FLAG_FOCUS) && (mKeyCatcher1.GetElement() != pElement))
	{
		// give it to key catcher number 2
		mKeyCatcher2.SetElement(pElement);
		GetManager()->SetFocus(&mKeyCatcher2);
		mKeyCatcher1.SetElement(0);
	}
}
开发者ID:peteratebs,项目名称:webcwebbrowser,代码行数:23,代码来源:dhbody.cpp


示例14: GetWorker

//
// Retrieving a pointer to a specified worker item in the view.
//
HTREEITEM CWorkerView::GetWorker(Worker * worker)
{
	HTREEITEM hworker;

	// Get the first worker.
	hworker = m_TWorkers.GetChildItem(GetManager(worker->manager));

	// Loop through manager's workers until we find the correct one.
	while (m_TWorkers.GetItemData(hworker) != (DWORD_PTR) worker)
		hworker = m_TWorkers.GetNextSiblingItem(hworker);

	return hworker;
}
开发者ID:blusjune,项目名称:.bsrc,代码行数:16,代码来源:WorkerView.cpp


示例15: ManagerCount

//
// Disambiguate same-named managers.  This allows managers
// to be uniquely identified in saved files and other places.
// This should be called any time managers are added, removed, or renamed.
//
void ManagerList::IndexManagers()
{
	Manager *mgr, *othermgr;
	int count_up, count_down;
	const int mgr_count = ManagerCount();

	for (count_up = 0; count_up < mgr_count; count_up++) {
		mgr = GetManager(count_up);
		mgr->id = 1;	// Assume this is unique, unless proven otherwise.

		for (count_down = count_up - 1; count_down >= 0; count_down--) {
			othermgr = GetManager(count_down);

			if (CString(mgr->name).CompareNoCase(othermgr->name) == 0) {
				// If the managers' names are identical, assign
				// this manager an ID value one greater.
				mgr->id = othermgr->id + 1;
				break;
			}
		}
	}
}
开发者ID:BackupTheBerlios,项目名称:iometer-svn,代码行数:27,代码来源:ManagerList.cpp


示例16: GetManager

bool CWebBrowserUI::DoCreateControl()
{
    if (!CActiveXUI::DoCreateControl())
        return false;
    GetManager()->AddTranslateAccelerator(this);
    GetControl(IID_IWebBrowser2,(LPVOID*)&m_pWebBrowser2);
    if ( m_bAutoNavi && !m_sHomePage.IsEmpty())
    {
        this->Navigate2(m_sHomePage);
    }
    RegisterEventHandler(TRUE);
    return true;
}
开发者ID:wx58,项目名称:duilib,代码行数:13,代码来源:UIWebBrowser.cpp


示例17: Init

void CustomTriggerController::Init (NewtonCollision* const convexShape, const dMatrix& matrix, void* const userData)
{
	m_userData = userData;

	NewtonWorld* const world = ((CustomTriggerManager*)GetManager())->GetWorld();

	// create a trigger body and place in the scene
	m_body = NewtonCreateKinematicBody(world, convexShape, &matrix[0][0]);
	
	// set this shape do not collide with other bodies
	NewtonCollision* const collision = NewtonBodyGetCollision (m_body);
	NewtonCollisionSetMode(collision, 0);
}
开发者ID:Kaoswerk,项目名称:newton-dynamics,代码行数:13,代码来源:CustomTriggerManager.cpp


示例18: dlg

void Frame::OnClose(wxCloseEvent& event)
{
  wxExFileDialog dlg(this, &m_Query->GetFile());

  if (dlg.ShowModalIfChanged()  == wxID_CANCEL)
  {
    return;
  }

  wxConfigBase::Get()->Write("Perspective", GetManager().SavePerspective());

  event.Skip();
}
开发者ID:Emmavw,项目名称:wxExtension,代码行数:13,代码来源:app.cpp


示例19: Render

void MeshDrawer::Render()
{



    Controller * ctrl = static_cast<Controller*>(GetManager()->Get("Controller"));
    DataManager * dm = static_cast<DataManager*>(GetManager()->Get("DataManager"));
    MeshShader * shader = static_cast<MeshShader*>((GetManager()->Get("Pipeline"))->Get("MeshWrapper"));
    Techniques * tech = static_cast<Techniques*>(dm->Get("Techniques"));
    EntityManager * entity_manager = static_cast<EntityManager*>(Get("EntityManager"));
    EntityPalette * entity_palette = static_cast<EntityPalette*>(Get("EntityPalette"));




    shader->SetSpecular(0.0f, 1.0f);
    if (tech->GetShadow()->OnShadowPass())
    {
        glCullFace(GL_FRONT);
        entity_manager->Enable();
        entity_palette->Enable();
        glCullFace(GL_BACK);
    }
    else
    {
        entity_manager->Enable();
        entity_palette->Enable();
    }









}
开发者ID:aaether14,项目名称:Aaether-Engine-SDK,代码行数:38,代码来源:mesh_drawer.cpp


示例20: GetManager

bool
Opal::Sip::EndPoint::StartListener (unsigned port)
{
  unsigned udp_min = GetManager ().GetUDPPortBase ();
  unsigned udp_max = GetManager ().GetUDPPortMax ();
  unsigned tcp_min = GetManager ().GetTCPPortBase ();
  unsigned tcp_max = GetManager ().GetTCPPortMax ();

  const std::string protocols[] = { "udp", "tcp", "" };
  const unsigned ports[][2] = { { udp_min, udp_max }, { tcp_min, tcp_max } };

  if (port > 0) {

    RemoveListener (NULL);
    for (int i = 0 ; !protocols[i].empty () ; i++) {

      std::stringstream str;
      str << protocols[i] << "$*:" << port;
      if (!StartListeners (PStringArray (str.str ()))) {

        port = ports[i][0];
        while (port <= ports[i][1]) {
          str << protocols[i] << "$*:" << port;
          if (StartListeners (PStringArray (str.str ()))) {
            PTRACE (4, "Opal::Sip::EndPoint\tSet listen port to " << port << " (" << protocols[i] << ")");
            break;
          }

          port++;
        }
      }
      else
        PTRACE (4, "Opal::Sip::EndPoint\tSet listen port to " << port << " (" << protocols[i] << ")");
    }
  }

  return false;
}
开发者ID:GNOME,项目名称:ekiga,代码行数:38,代码来源:sip-endpoint.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ GetMap函数代码示例发布时间:2022-05-30
下一篇:
C++ GetMainWindow函数代码示例发布时间: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