本文整理汇总了C++中LPDESC::GetType方法的典型用法代码示例。如果您正苦于以下问题:C++ LPDESC::GetType方法的具体用法?C++ LPDESC::GetType怎么用?C++ LPDESC::GetType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LPDESC
的用法示例。
在下文中一共展示了LPDESC::GetType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DestroyClosed
void DESC_MANAGER::DestroyClosed()
{
DESC_SET::iterator i = m_set_pkDesc.begin();
while (i != m_set_pkDesc.end())
{
LPDESC d = *i;
DESC_SET::iterator ci = i;
++i;
if (d->IsPhase(PHASE_CLOSE))
{
if (d->GetType() == DESC_TYPE_CONNECTOR)
{
LPCLIENT_DESC client_desc = (LPCLIENT_DESC)d;
if (client_desc->IsRetryWhenClosed())
{
client_desc->Reset();
continue;
}
}
DestroyDesc(d, false);
m_set_pkDesc.erase(ci);
}
}
}
示例2: Destroy
void DESC_MANAGER::Destroy()
{
if (m_bDestroyed) {
return;
}
m_bDestroyed = true;
DESC_SET::iterator i = m_set_pkDesc.begin();
while (i != m_set_pkDesc.end())
{
LPDESC d = *i;
DESC_SET::iterator ci = i;
++i;
if (d->GetType() == DESC_TYPE_CONNECTOR)
continue;
if (d->IsPhase(PHASE_P2P))
continue;
DestroyDesc(d, false);
m_set_pkDesc.erase(ci);
}
i = m_set_pkDesc.begin();
while (i != m_set_pkDesc.end())
{
LPDESC d = *i;
DESC_SET::iterator ci = i;
++i;
DestroyDesc(d, false);
m_set_pkDesc.erase(ci);
}
m_set_pkClientDesc.clear();
//m_AccountIDMap.clear();
m_map_loginName.clear();
m_map_handle.clear();
Initialize();
}