本文整理汇总了C++中CUrl::GetResource方法的典型用法代码示例。如果您正苦于以下问题:C++ CUrl::GetResource方法的具体用法?C++ CUrl::GetResource怎么用?C++ CUrl::GetResource使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUrl
的用法示例。
在下文中一共展示了CUrl::GetResource方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CurrentlyListed
bool CManagedUrlList::CurrentlyListed(CUrl Url) {
// If the url is in the list of urls to visit, then we already know about it
for (std::list<CUrl>::iterator j = this->begin(); j != this->end(); j++) {
CUrl Current = *j;
// ### This will have to be more specific to match the server too
if (Url.GetResource() == Current.GetResource()) return true;
}
// Didn't find it in the list
return false;
}
示例2: PreviouslyListed
bool CManagedUrlList::PreviouslyListed(CUrl Url) {
// If the url is in the list of visited resources, then we've been there
for (std::list<CUrl>::iterator i = m_PastItems.begin(); i != m_PastItems.end(); i++) {
CUrl Current = *i;
// ### This will have to be more specific to match the server too
if (Current.GetResource() == Url.GetResource()) {
// Already been there
return true;
}
}
// Couldn't find it
return false;
}