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

CXMLNode Class Reference

#include <XML.h>

Inheritance diagram for CXMLNode:

CXMLAttribute CXMLElement List of all members.

Public Member Functions

 CXMLNode (CXMLElement *pParent=NULL, LPCTSTR pszName=NULL)
virtual ~CXMLNode ()
int GetType () const
CXMLNodeAsNode () const
CXMLElementAsElement () const
CXMLAttributeAsAttribute () const
CXMLElementGetParent () const
void Delete ()
CString GetName () const
void SetName (LPCTSTR pszValue)
BOOL IsNamed (LPCTSTR pszName) const
CString GetValue () const
void SetValue (LPCTSTR pszValue)

Static Public Member Functions

static CString StringToValue (LPCTSTR &pszXML, int nLength)
static void ValueToString (LPCTSTR pszValue, CString &strXML)
static void UniformString (CString &str)

Protected Types

enum  { xmlNode, xmlElement, xmlAttribute }

Static Protected Member Functions

static BOOL ParseMatch (LPCTSTR &pszXML, LPCTSTR pszToken)
static BOOL ParseIdentifier (LPCTSTR &pszXML, CString &strIdentifier)

Protected Attributes

int m_nNode
CXMLElementm_pParent
CString m_sName
CString m_sValue

Friends

class CXMLElement
class CQuerySearch
class CXMLCOM

Member Enumeration Documentation

anonymous enum [protected]
 

Enumeration values:
xmlNode 
xmlElement 
xmlAttribute 

Definition at line 43 of file XML.h.


Constructor & Destructor Documentation

CXMLNode::CXMLNode CXMLElement pParent = NULL,
LPCTSTR  pszName = NULL
 

Definition at line 36 of file XML.cpp.

References m_nNode, m_pParent, m_sName, and xmlNode.

CXMLNode::~CXMLNode  )  [virtual]
 

Definition at line 43 of file XML.cpp.


Member Function Documentation

CXMLAttribute * CXMLNode::AsAttribute  )  const [inline]
 

Definition at line 41 of file XML.inl.

References m_nNode, NULL, and xmlAttribute.

CXMLElement * CXMLNode::AsElement  )  const [inline]
 

Definition at line 36 of file XML.inl.

References m_nNode, NULL, and xmlElement.

CXMLNode * CXMLNode::AsNode  )  const [inline]
 

Definition at line 31 of file XML.inl.

void CXMLNode::Delete  )  [inline]
 

Definition at line 54 of file XML.inl.

References m_nNode, m_pParent, NULL, CXMLElement::RemoveAttribute(), CXMLElement::RemoveElement(), xmlAttribute, and xmlElement.

Referenced by CContactProfilePage::AddAddress(), CXMLElement::DeleteAttribute(), CFavouritesProfilePage::OnOK(), CQueryHit::ParseXML(), CQuerySearch::ReadG2Packet(), and CQueryHit::ReadG2Packet().

CString CXMLNode::GetName  )  const [inline]
 

Definition at line 70 of file XML.inl.

References m_sName.

Referenced by CXMLElement::AddRecursiveWords(), CLibraryDetailView::CacheItem(), CCollectionFile::CloneMetadata(), CCollectionExportDlg::CopyMetadata(), CRelatedSearch::CRelatedSearch(), CXMLElement::GetElementByName(), CSchema::GetType(), CSchema::LoadDescriptorBitziImport(), CSchema::LoadDescriptorTypeFilter(), CSchema::LoadPrimary(), CSchemaMember::LoadSchema(), CSchemaMember::LoadType(), CBitziDownloader::LookupValue(), CBitziDownloader::MergeMetaData(), CQueryHit::ParseXML(), CQuerySearch::ReadG2Packet(), and CSchemaCtrl::UpdateData().

CXMLElement * CXMLNode::GetParent  )  const [inline]
 

Definition at line 49 of file XML.inl.

References m_pParent.

Referenced by CLocalSearch::AddMetadata().

int CXMLNode::GetType  )  const [inline]
 

Definition at line 26 of file XML.inl.

References m_nNode.

CString CXMLNode::GetValue  )  const [inline]
 

Definition at line 89 of file XML.inl.

References m_sValue.

Referenced by CXMLElement::AddRecursiveWords(), CRelatedSearch::CRelatedSearch(), CIdentityProfilePage::GetGenderTranslations(), CSchemaMember::LoadDescriptor(), CSchema::LoadDescriptorHeaderContent(), CSchema::LoadDescriptorTitles(), CSchema::LoadDescriptorViewContent(), CVendor::LoadFrom(), CRichDocument::LoadXML(), CQuerySearch::MatchMetadataShallow(), CSchemaChild::MemberCopy(), CProfileProfilePage::OnInitDialog(), CDecodeMetadataDlg::OnOK(), CCollectionFile::File::Parse(), CQueryHit::ParseXML(), and CBrowseProfileCtrl::UpdateDocument1().

BOOL CXMLNode::IsNamed LPCTSTR  pszName  )  const [inline]
 

Definition at line 80 of file XML.inl.

References m_sName, and NULL.

Referenced by CContactProfilePage::AddAddress(), CSkinsSettingsPage::AddSkin(), CLanguageDlg::AddSkin(), CSkin::Apply(), CSkin::CreateMenu(), CSkin::CreateToolBar(), CSecurity::FromXML(), CGProfile::GetContact(), CIdentityProfilePage::GetGenderTranslations(), CSkinWindow::GetRegionSize(), CSchemaChildMap::Load(), CSchemaChild::Load(), CSkin::LoadColourScheme(), CSkin::LoadCommandBitmap(), CSkin::LoadCommandImages(), CSkin::LoadCommandMap(), CSchemaMember::LoadDescriptor(), CSchema::LoadDescriptor(), CSchema::LoadDescriptorContains(), CSchema::LoadDescriptorExtends(), CSchema::LoadDescriptorHeaderContent(), CSchema::LoadDescriptorIcons(), CSchema::LoadDescriptorMembers(), CSchema::LoadDescriptorTitles(), CSchema::LoadDescriptorViewContent(), CSkin::LoadDialogs(), CSkin::LoadDocuments(), CSkin::LoadFonts(), CWorldCity::LoadFrom(), CWorldCountry::LoadFrom(), CWorldGPS::LoadFrom(), CVendor::LoadFrom(), CVendorCache::LoadFrom(), CSkin::LoadFromXML(), CSkin::LoadListColumns(), CCollectionFile::LoadManifest(), CSkin::LoadMenus(), CSchema::LoadPrimary(), CSchema::LoadSchema(), CSkin::LoadStrings(), CSkin::LoadToolbars(), CEmoticons::LoadTrillian(), CSkin::LoadWatermarks(), CSkin::LoadWindowSkins(), CRichDocument::LoadXML(), CRichDocument::LoadXMLStyles(), CProfileProfilePage::OnInitDialog(), CFavouritesProfilePage::OnInitDialog(), CContactProfilePage::OnInitDialog(), CDecodeMetadataDlg::OnOK(), CSkinWindow::Parse(), CCollectionFile::File::Parse(), CSkinWindow::SelectRegion(), CBrowseProfileCtrl::UpdateDocument1(), CBrowseProfileCtrl::UpdateDocument2(), and CSchema::Validate().

BOOL CXMLNode::ParseIdentifier LPCTSTR &  pszXML,
CString &  strIdentifier
[static, protected]
 

Definition at line 68 of file XML.cpp.

Referenced by CXMLAttribute::ParseString(), and CXMLElement::ParseString().

BOOL CXMLNode::ParseMatch LPCTSTR &  pszXML,
LPCTSTR  pszToken
[static, protected]
 

Definition at line 50 of file XML.cpp.

Referenced by CXMLElement::FromString(), CXMLAttribute::ParseString(), and CXMLElement::ParseString().

void CXMLNode::SetName LPCTSTR  pszValue  )  [inline]
 

Definition at line 75 of file XML.inl.

References m_sName.

Referenced by CCollectionFile::CloneMetadata(), and CCollectionExportDlg::CopyMetadata().

void CXMLNode::SetValue LPCTSTR  pszValue  )  [inline]
 

Definition at line 94 of file XML.inl.

References m_sValue.

Referenced by CXMLElement::AddAttribute(), CProfileProfilePage::OnOK(), CDecodeMetadataDlg::OnOK(), CLibraryFile::SaveMetadata(), and CSchemaMember::SetValueTo().

CString CXMLNode::StringToValue LPCTSTR &  pszXML,
int  nLength
[static]
 

Definition at line 91 of file XML.cpp.

Referenced by CXMLAttribute::ParseString(), and CXMLElement::ParseString().

void CXMLNode::UniformString CString &  str  )  [static]
 

Definition at line 279 of file XML.cpp.

References NULL.

Referenced by CLibraryFolders::GetAlbumTarget(), CAlbumFolder::GetTarget(), CSchemaChild::MemberCopy(), and CAlbumFolder::OrganiseFile().

void CXMLNode::ValueToString LPCTSTR  pszValue,
CString &  strXML
[static]
 

Definition at line 195 of file XML.cpp.

References V2S_APPEND.

Referenced by CLocalSearch::AddHitG2(), CXMLAttribute::ToString(), and CXMLElement::ToString().


Friends And Related Function Documentation

friend class CQuerySearch [friend]
 

Definition at line 72 of file XML.h.

friend class CXMLCOM [friend]
 

Definition at line 74 of file XML.h.

friend class CXMLElement [friend]
 

Definition at line 71 of file XML.h.


Member Data Documentation

int CXMLNode::m_nNode [protected]
 

Definition at line 38 of file XML.h.

Referenced by AsAttribute(), AsElement(), CXMLAttribute::CXMLAttribute(), CXMLElement::CXMLElement(), CXMLNode(), Delete(), GetType(), and CXMLCOM::Wrap().

CXMLElement* CXMLNode::m_pParent [protected]
 

Definition at line 39 of file XML.h.

Referenced by CXMLNode(), Delete(), CXMLElement::Detach(), and GetParent().

CString CXMLNode::m_sName [protected]
 

Definition at line 40 of file XML.h.

Referenced by CXMLAttribute::Clone(), CXMLElement::Clone(), CXMLNode(), CXMLAttribute::Equals(), CXMLElement::Equals(), GetName(), IsNamed(), CXMLAttribute::ParseString(), CXMLElement::ParseString(), SetName(), CXMLAttribute::ToString(), and CXMLElement::ToString().

CString CXMLNode::m_sValue [protected]
 

Definition at line 41 of file XML.h.

Referenced by CXMLElement::AddRecursiveWords(), CQuerySearch::BuildWordList(), CXMLAttribute::Clone(), CXMLElement::Clone(), CXMLAttribute::Equals(), CXMLElement::Equals(), CXMLElement::GetAttributeValue(), GetValue(), CXMLAttribute::ParseString(), CXMLElement::ParseString(), SetValue(), CXMLAttribute::ToString(), and CXMLElement::ToString().


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