本文整理汇总了C++中IteratorRef::hasNext方法的典型用法代码示例。如果您正苦于以下问题:C++ IteratorRef::hasNext方法的具体用法?C++ IteratorRef::hasNext怎么用?C++ IteratorRef::hasNext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IteratorRef
的用法示例。
在下文中一共展示了IteratorRef::hasNext方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: removeService
void WebServiceContainer::removeService(
const char* path,
WebService::SecurityType st,
bool cleanup,
const char* domain)
{
// build list of domains to remove service from
DynamicObject domains(NULL);
if(domain != NULL)
{
domains = DynamicObject();
domains->append(domain);
}
else
{
domains = mDefaultDomains;
}
// build a unique list of services to cleanup
UniqueList<WebServiceRef> cleanupList;
// prevent other container access
mContainerLock.lockExclusive();
DynamicObjectIterator di = domains.getIterator();
while(di->hasNext())
{
const char* dom = di->next()->getString();
if(st == WebService::Both || st == WebService::Secure)
{
mHttpConnectionServicer.removeRequestServicer(path, true, dom);
MO_CAT_DEBUG(MO_WS_CAT,
"Removed secure web service: %s%s", dom, path);
}
if(st != WebService::Secure)
{
mHttpConnectionServicer.removeRequestServicer(path, false, dom);
MO_CAT_DEBUG(MO_WS_CAT,
"Removed non-secure web service: %s%s", dom, path);
}
internalRemoveService(path, st, dom, &cleanupList);
}
// permit access again
mContainerLock.unlockExclusive();
// clean up services
if(cleanup)
{
IteratorRef<WebServiceRef> i = cleanupList.getIterator();
while(i->hasNext())
{
WebServiceRef& ws = i->next();
ws->cleanup();
}
}
}