本文整理汇总了C++中SBBroadcaster类的典型用法代码示例。如果您正苦于以下问题:C++ SBBroadcaster类的具体用法?C++ SBBroadcaster怎么用?C++ SBBroadcaster使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SBBroadcaster类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
bool
SBListener::WaitForEventForBroadcasterWithType
(
uint32_t num_seconds,
const SBBroadcaster &broadcaster,
uint32_t event_type_mask,
SBEvent &event
)
{
if (m_opaque_sp && broadcaster.IsValid())
{
TimeValue time_value;
if (num_seconds != UINT32_MAX)
{
time_value = TimeValue::Now();
time_value.OffsetWithSeconds (num_seconds);
}
EventSP event_sp;
if (m_opaque_sp->WaitForEventForBroadcasterWithType (time_value.IsValid() ? &time_value : NULL,
broadcaster.get(),
event_type_mask,
event_sp))
{
event.reset (event_sp);
return true;
}
}
event.reset (NULL);
return false;
}
示例2: get
SBBroadcaster
SBEvent::GetBroadcaster () const
{
SBBroadcaster broadcaster;
const Event *lldb_event = get();
if (lldb_event)
broadcaster.reset (lldb_event->GetBroadcaster(), false);
return broadcaster;
}
示例3: log
SBBroadcaster
SBCommandInterpreter::GetBroadcaster ()
{
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
SBBroadcaster broadcaster (m_opaque_ptr, false);
if (log)
log->Printf ("SBCommandInterpreter(%p)::GetBroadcaster() => SBBroadcaster(%p)",
m_opaque_ptr, broadcaster.get());
return broadcaster;
}
示例4: broadcaster
SBBroadcaster
SBCommunication::GetBroadcaster ()
{
SBBroadcaster broadcaster (m_opaque, false);
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
if (log)
log->Printf ("SBCommunication(%p)::GetBroadcaster () => SBBroadcaster (%p)",
m_opaque, broadcaster.get());
return broadcaster;
}
示例5:
bool
SBListener::GetNextEventForBroadcasterWithType
(
const SBBroadcaster &broadcaster,
uint32_t event_type_mask,
SBEvent &event
)
{
if (m_opaque_ptr && broadcaster.IsValid())
{
EventSP event_sp;
if (m_opaque_ptr->GetNextEventForBroadcasterWithType (broadcaster.get(),
event_type_mask,
event_sp))
{
event.reset (event_sp);
return true;
}
}
event.reset (NULL);
return false;
}