Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CVendorCache Class Reference

#include <VendorCache.h>

List of all members.

Public Member Functions

 CVendorCache ()
virtual ~CVendorCache ()
POSITION GetIterator () const
CVendorGetNext (POSITION &pos) const
int GetCount () const
CVendorLookup (LPCSTR pszCode, BOOL bCreate=TRUE)
CVendorLookup (LPCWSTR pszCode, BOOL bCreate=TRUE)
CVendorLookupByName (LPCTSTR pszName) const
void Clear ()
BOOL Load ()

Public Attributes

CVendorm_pNull
CVendorm_pShareaza
CVendorm_pED2K

Protected Member Functions

BOOL LoadFrom (CXMLElement *pXML)

Protected Attributes

CMapStringToPtr m_pMap


Constructor & Destructor Documentation

CVendorCache::CVendorCache  ) 
 

Definition at line 40 of file VendorCache.cpp.

References CVendor::m_bAuto, m_pED2K, m_pNull, and m_pShareaza.

CVendorCache::~CVendorCache  )  [virtual]
 

Definition at line 48 of file VendorCache.cpp.

References Clear(), and m_pNull.


Member Function Documentation

void CVendorCache::Clear  ) 
 

Definition at line 117 of file VendorCache.cpp.

References GetIterator(), GetNext(), m_pMap, m_pShareaza, and NULL.

Referenced by ~CVendorCache().

int CVendorCache::GetCount  )  const
 

Definition at line 70 of file VendorCache.cpp.

References m_pMap.

Referenced by LoadFrom().

POSITION CVendorCache::GetIterator  )  const
 

Definition at line 57 of file VendorCache.cpp.

References m_pMap.

Referenced by Clear(), and LookupByName().

CVendor * CVendorCache::GetNext POSITION &  pos  )  const
 

Definition at line 62 of file VendorCache.cpp.

References m_pMap, and NULL.

Referenced by Clear(), and LookupByName().

BOOL CVendorCache::Load  ) 
 

Definition at line 130 of file VendorCache.cpp.

References CXMLElement::FromFile(), CSettings::General, LoadFrom(), NULL, CSettings::sGeneral::Path, and Settings.

Referenced by CShareazaApp::InitInstance().

BOOL CVendorCache::LoadFrom CXMLElement pXML  )  [protected]
 

Definition at line 148 of file VendorCache.cpp.

References GetCount(), CXMLElement::GetElementIterator(), CXMLElement::GetNextElement(), CXMLNode::IsNamed(), CVendor::LoadFrom(), m_pED2K, m_pMap, m_pShareaza, CVendor::m_sCode, CShareazaApp::Message(), MSG_ERROR, NULL, and theApp.

Referenced by Load().

CVendor * CVendorCache::Lookup LPCWSTR  pszCode,
BOOL  bCreate = TRUE
 

Definition at line 84 of file VendorCache.cpp.

References m_pMap, m_pNull, and NULL.

CVendor * CVendorCache::Lookup LPCSTR  pszCode,
BOOL  bCreate = TRUE
 

Definition at line 78 of file VendorCache.cpp.

Referenced by CQueryHit::FromPacket(), CG2Neighbour::OnLNI(), CQueryHit::Serialize(), CHostCacheHost::Serialize(), and CHostCacheHost::Update().

CVendor * CVendorCache::LookupByName LPCTSTR  pszName  )  const
 

Definition at line 102 of file VendorCache.cpp.

References GetIterator(), GetNext(), CVendor::m_sName, and NULL.

Referenced by CHostBrowser::OnHeaderLine().


Member Data Documentation

CVendor* CVendorCache::m_pED2K
 

Definition at line 42 of file VendorCache.h.

Referenced by CVendorCache(), CQueryHit::FromPacket(), and LoadFrom().

CMapStringToPtr CVendorCache::m_pMap [protected]
 

Definition at line 44 of file VendorCache.h.

Referenced by Clear(), GetCount(), GetIterator(), GetNext(), LoadFrom(), and Lookup().

CVendor* CVendorCache::m_pNull
 

Definition at line 40 of file VendorCache.h.

Referenced by CQueryHit::CQueryHit(), CVendorCache(), CQueryHit::FromPacket(), Lookup(), CHostBrowser::StreamHTML(), and ~CVendorCache().

CVendor* CVendorCache::m_pShareaza
 

Definition at line 41 of file VendorCache.h.

Referenced by Clear(), CVendorCache(), LoadFrom(), and CG1Neighbour::SendClusterAdvisor().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:13 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2