本文整理汇总了C++中LocalStatus::getStatus方法的典型用法代码示例。如果您正苦于以下问题:C++ LocalStatus::getStatus方法的具体用法?C++ LocalStatus::getStatus怎么用?C++ LocalStatus::getStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LocalStatus
的用法示例。
在下文中一共展示了LocalStatus::getStatus方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: update_session
void TraceManager::update_session(const TraceSession& session)
{
// if this session is already known, nothing to do
FB_SIZE_T pos;
if (trace_sessions.find(session.ses_id, pos)) {
return;
}
// if this session is not from administrator, it may trace connections
// only created by the same user
if (!(session.ses_flags & trs_admin))
{
if (attachment)
{
if (!attachment->att_user || attachment->att_user->usr_user_name != session.ses_user)
return;
}
else if (service)
{
if (session.ses_user != service->getUserName())
return;
}
else
{
// failed attachment attempts traced by admin trace only
return;
}
}
MasterInterfacePtr master;
for (FactoryInfo* info = factories->begin(); info != factories->end(); ++info)
{
TraceInitInfoImpl attachInfo(session, attachment, filename);
LocalStatus status;
ITracePlugin* plugin = info->factory->trace_create(&status, &attachInfo);
if (plugin)
{
plugin->addRef();
SessionInfo sesInfo;
sesInfo.plugin = plugin;
sesInfo.factory_info = info;
sesInfo.ses_id = session.ses_id;
trace_sessions.add(sesInfo);
trace_needs |= info->factory->trace_needs();
}
else if (status.getStatus() & IStatus::FB_HAS_ERRORS)
{
string header;
header.printf("Trace plugin %s returned error on call trace_create.", info->name);
iscLogStatus(header.c_str(), &status);
}
}
}