本文整理汇总了C++中LocalStatus::getState方法的典型用法代码示例。如果您正苦于以下问题:C++ LocalStatus::getState方法的具体用法?C++ LocalStatus::getState怎么用?C++ LocalStatus::getState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LocalStatus
的用法示例。
在下文中一共展示了LocalStatus::getState方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: commit
void UserManagement::commit()
{
for (unsigned i = 0; i < managers.getCount(); ++i)
{
IManagement* manager = managers[i].second;
if (manager)
{
LocalStatus status;
CheckStatusWrapper statusWrapper(&status);
manager->commit(&statusWrapper);
if (status.getState() & IStatus::STATE_ERRORS)
status_exception::raise(&statusWrapper);
PluginManagerInterfacePtr()->releasePlugin(manager);
managers[i].second = NULL;
}
}
}
示例2: registerManager
IManagement* UserManagement::registerManager(Auth::Get& getPlugin, const char* plugName)
{
IManagement* manager = getPlugin.plugin();
fb_assert(manager);
// Start new management plugin ...
LocalStatus status;
CheckStatusWrapper statusWrapper(&status);
UserIdInfo idInfo(att);
manager->start(&statusWrapper, &idInfo);
if (status.getState() & IStatus::STATE_ERRORS)
{
status_exception::raise(&statusWrapper);
}
// ... and store it in cache
Manager& m(managers.add());
m.first = plugName;
m.second = manager;
manager->addRef();
return manager;
}