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

CSchemaMember Class Reference

#include <SchemaMember.h>

List of all members.

Public Member Functions

 CSchemaMember (CSchema *pSchema)
virtual ~CSchemaMember ()
POSITION GetItemIterator () const
CString GetNextItem (POSITION &pos) const
int GetItemCount () const
CString GetValueFrom (CXMLElement *pElement, LPCTSTR pszDefault=NULL, BOOL bFormat=FALSE) const
void SetValueTo (CXMLElement *pBase, LPCTSTR pszValue)

Public Attributes

CSchemam_pSchema
CString m_sName
CString m_sType
CString m_sTitle
BOOL m_bElement
BOOL m_bNumeric
BOOL m_bIndexed
BOOL m_bSearched
int m_nMinOccurs
int m_nMaxOccurs
int m_nMaxLength
BOOL m_bPrompt
int m_nFormat
int m_nColumnWidth
int m_nColumnAlign
CString m_sLinkURI
CString m_sLinkName
CStringList m_pItems

Protected Member Functions

BOOL LoadSchema (CXMLElement *pRoot, CXMLElement *pElement)
BOOL LoadType (CXMLElement *pType)
BOOL LoadDescriptor (CXMLElement *pXML)
BOOL LoadDisplay (CXMLElement *pXML)

Friends

class CSchema


Constructor & Destructor Documentation

CSchemaMember::CSchemaMember CSchema pSchema  ) 
 

Definition at line 39 of file SchemaMember.cpp.

References m_bIndexed, m_bNumeric, m_bPrompt, m_bSearched, m_nColumnAlign, m_nColumnWidth, m_nFormat, m_nMaxLength, m_nMaxOccurs, m_nMinOccurs, m_pSchema, and smfNone.

CSchemaMember::~CSchemaMember  )  [virtual]
 

Definition at line 55 of file SchemaMember.cpp.


Member Function Documentation

int CSchemaMember::GetItemCount  )  const
 

Definition at line 72 of file SchemaMember.cpp.

References m_pItems.

Referenced by CSchemaCtrl::SetSchema().

POSITION CSchemaMember::GetItemIterator  )  const
 

Definition at line 62 of file SchemaMember.cpp.

References m_pItems.

Referenced by CSchemaCtrl::SetSchema().

CString CSchemaMember::GetNextItem POSITION &  pos  )  const
 

Definition at line 67 of file SchemaMember.cpp.

References m_pItems.

Referenced by CSchemaCtrl::SetSchema().

CString CSchemaMember::GetValueFrom CXMLElement pElement,
LPCTSTR  pszDefault = NULL,
BOOL  bFormat = FALSE
const
 

Definition at line 80 of file SchemaMember.cpp.

References CXMLElement::GetAttributeValue(), CXMLElement::GetElementByName(), m_bNumeric, m_nFormat, m_nMaxOccurs, m_sName, NULL, smfBitrate, smfFrequency, smfTimeHHMMSSdec, and smfTimeMMSS.

Referenced by CLibraryDetailView::CacheItem(), CMetaItem::Combine(), CSchema::GetIndexedWords(), CLibraryDetailView::ListCompare(), CQuerySearch::MatchMetadata(), CQuerySearch::MatchMetadataShallow(), CFileMetadataPage::OnInitDialog(), CSchemaCtrl::UpdateData(), and CSchema::Validate().

BOOL CSchemaMember::LoadDescriptor CXMLElement pXML  )  [protected]
 

Definition at line 257 of file SchemaMember.cpp.

References CSettings::General, CXMLElement::GetAttributeValue(), CXMLElement::GetElementIterator(), CXMLElement::GetNextElement(), CXMLNode::GetValue(), CXMLNode::IsNamed(), CSettings::sGeneral::Language, LoadDisplay(), m_bIndexed, m_bSearched, m_sLinkName, m_sLinkURI, m_sTitle, and Settings.

BOOL CSchemaMember::LoadDisplay CXMLElement pXML  )  [protected]
 

Definition at line 306 of file SchemaMember.cpp.

References CXMLElement::GetAttributeValue(), m_bPrompt, m_nColumnAlign, m_nColumnWidth, m_nFormat, m_pSchema, CSchema::m_sDefaultColumns, m_sName, smfBitrate, smfFrequency, smfTimeHHMMSSdec, and smfTimeMMSS.

Referenced by LoadDescriptor().

BOOL CSchemaMember::LoadSchema CXMLElement pRoot,
CXMLElement pElement
[protected]
 

Definition at line 186 of file SchemaMember.cpp.

References CXMLElement::GetAttributeValue(), CXMLElement::GetElementCount(), CXMLElement::GetFirstElement(), CXMLNode::GetName(), CSchema::GetType(), LoadType(), m_bElement, m_bNumeric, m_nMaxOccurs, m_nMinOccurs, m_pSchema, m_sName, m_sTitle, and m_sType.

Referenced by CSchema::LoadPrimary().

BOOL CSchemaMember::LoadType CXMLElement pType  )  [protected]
 

Definition at line 222 of file SchemaMember.cpp.

References CXMLElement::GetAttributeValue(), CXMLElement::GetElementIterator(), CXMLNode::GetName(), CXMLElement::GetNextElement(), m_bNumeric, m_nMaxLength, m_pItems, and m_sType.

Referenced by LoadSchema().

void CSchemaMember::SetValueTo CXMLElement pBase,
LPCTSTR  pszValue
 

Definition at line 155 of file SchemaMember.cpp.

References m_bElement, m_sName, NULL, and CXMLNode::SetValue().

Referenced by CSchemaCtrl::UpdateData(), and CSchema::Validate().


Friends And Related Function Documentation

friend class CSchema [friend]
 

Definition at line 76 of file SchemaMember.h.


Member Data Documentation

BOOL CSchemaMember::m_bElement
 

Definition at line 44 of file SchemaMember.h.

Referenced by LoadSchema(), and SetValueTo().

BOOL CSchemaMember::m_bIndexed
 

Definition at line 46 of file SchemaMember.h.

Referenced by CQuerySearch::BuildWordList(), CSchemaMember(), CSchema::GetIndexedWords(), and LoadDescriptor().

BOOL CSchemaMember::m_bNumeric
 

Definition at line 45 of file SchemaMember.h.

Referenced by CSchemaMember(), GetValueFrom(), LoadSchema(), LoadType(), CQuerySearch::MatchMetadata(), CSchemaCtrl::OnCommand(), and CSchema::Validate().

BOOL CSchemaMember::m_bPrompt
 

Definition at line 53 of file SchemaMember.h.

Referenced by CSchemaMember(), LoadDisplay(), and CSchemaCtrl::SetSchema().

BOOL CSchemaMember::m_bSearched
 

Definition at line 47 of file SchemaMember.h.

Referenced by CSchemaMember(), LoadDescriptor(), and CQuerySearch::MatchMetadataShallow().

int CSchemaMember::m_nColumnAlign
 

Definition at line 56 of file SchemaMember.h.

Referenced by CSchemaMember(), LoadDisplay(), CMatchCtrl::SelectSchema(), and CLibraryDetailView::SetViewSchema().

int CSchemaMember::m_nColumnWidth
 

Definition at line 55 of file SchemaMember.h.

Referenced by CSchemaMember(), LoadDisplay(), CMatchCtrl::SelectSchema(), and CLibraryDetailView::SetViewSchema().

int CSchemaMember::m_nFormat
 

Definition at line 54 of file SchemaMember.h.

Referenced by CSchemaMember(), GetValueFrom(), and LoadDisplay().

int CSchemaMember::m_nMaxLength
 

Definition at line 51 of file SchemaMember.h.

Referenced by CSchemaMember(), LoadType(), CSchemaCtrl::SetSchema(), and CSchema::Validate().

int CSchemaMember::m_nMaxOccurs
 

Definition at line 50 of file SchemaMember.h.

Referenced by CSchemaMember(), GetValueFrom(), LoadSchema(), and CSchema::Validate().

int CSchemaMember::m_nMinOccurs
 

Definition at line 49 of file SchemaMember.h.

Referenced by CSchemaMember(), and LoadSchema().

CStringList CSchemaMember::m_pItems
 

Definition at line 61 of file SchemaMember.h.

Referenced by GetItemCount(), GetItemIterator(), GetNextItem(), and LoadType().

CSchema* CSchemaMember::m_pSchema
 

Definition at line 40 of file SchemaMember.h.

Referenced by CSchemaMember(), LoadDisplay(), and LoadSchema().

CString CSchemaMember::m_sLinkName
 

Definition at line 59 of file SchemaMember.h.

Referenced by CMetaItem::CreateLink(), CMetaItem::GetLinkTarget(), and LoadDescriptor().

CString CSchemaMember::m_sLinkURI
 

Definition at line 58 of file SchemaMember.h.

Referenced by CMetaItem::CreateLink(), CMetaItem::GetLinkTarget(), and LoadDescriptor().

CString CSchemaMember::m_sName
 

Definition at line 41 of file SchemaMember.h.

Referenced by CQuerySearch::BuildWordList(), CLibraryDetailView::CacheItem(), CSchema::GetFirstMemberName(), CSchema::GetMember(), GetValueFrom(), CSchemaColumnsDlg::LoadColumns(), LoadDisplay(), LoadSchema(), CFileMetadataPage::OnInitDialog(), CSchemaColumnsDlg::OnSelChangeSchemas(), CSchemaColumnsDlg::SaveColumns(), and SetValueTo().

CString CSchemaMember::m_sTitle
 

Definition at line 43 of file SchemaMember.h.

Referenced by CSchemaColumnsDlg::BuildColumnMenu(), CMetaItem::CMetaItem(), LoadDescriptor(), LoadSchema(), CSchemaColumnsDlg::OnSelChangeSchemas(), CMatchCtrl::SelectSchema(), CSchemaCtrl::SetSchema(), and CLibraryDetailView::SetViewSchema().

CString CSchemaMember::m_sType
 

Definition at line 42 of file SchemaMember.h.

Referenced by LoadSchema(), LoadType(), and CSchemaColumnsDlg::OnSelChangeSchemas().


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