NWildcard::CCensorNode Class Reference

#include <Wildcard.h>

List of all members.

Public Member Functions

 CCensorNode ()
 CCensorNode (const UString &name, CCensorNode *parent)
int FindSubNode (const UString &path) const
void AddItem (bool include, CItem &item)
void AddItem (bool include, const UString &path, bool recursive, bool forFile, bool forDir)
void AddItem2 (bool include, const UString &path, bool recursive)
bool NeedCheckSubDirs () const
bool AreThereIncludeItems () const
bool CheckPath (const UString &path, bool isFile, bool &include) const
bool CheckPath (const UString &path, bool isFile) const
bool CheckPathToRoot (bool include, UStringVector &pathParts, bool isFile) const

Public Attributes

UString Name
CObjectVector< CCensorNodeSubNodes
CObjectVector< CItemIncludeItems
CObjectVector< CItemExcludeItems

Private Member Functions

bool CheckPathCurrent (bool include, const UStringVector &pathParts, bool isFile) const
void AddItemSimple (bool include, CItem &item)
bool CheckPath (UStringVector &pathParts, bool isFile, bool &include) const

Private Attributes

CCensorNodeParent


Detailed Description

Definition at line 28 of file Wildcard.h.


Constructor & Destructor Documentation

NWildcard::CCensorNode::CCensorNode (  )  [inline]

Definition at line 35 of file Wildcard.h.

Referenced by AddItem().

NWildcard::CCensorNode::CCensorNode ( const UString name,
CCensorNode parent 
) [inline]

Definition at line 36 of file Wildcard.h.


Member Function Documentation

bool NWildcard::CCensorNode::CheckPathCurrent ( bool  include,
const UStringVector pathParts,
bool  isFile 
) const [private]

Definition at line 238 of file Wildcard.cpp.

References CheckPath(), ExcludeItems, IncludeItems, and CBaseRecordVector::Size().

Referenced by CheckPath(), and CheckPathToRoot().

void NWildcard::CCensorNode::AddItemSimple ( bool  include,
CItem item 
) [private]

Definition at line 179 of file Wildcard.cpp.

References ExcludeItems, and IncludeItems.

Referenced by AddItem().

bool NWildcard::CCensorNode::CheckPath ( UStringVector pathParts,
bool  isFile,
bool include 
) const [private]

int NWildcard::CCensorNode::FindSubNode ( const UString path  )  const

Definition at line 171 of file Wildcard.cpp.

References CStringBase< T >::CompareNoCase(), Name, and SubNodes.

Referenced by AddItem(), and CheckPath().

void NWildcard::CCensorNode::AddItem ( bool  include,
CItem item 
)

void NWildcard::CCensorNode::AddItem ( bool  include,
const UString path,
bool  recursive,
bool  forFile,
bool  forDir 
)

void NWildcard::CCensorNode::AddItem2 ( bool  include,
const UString path,
bool  recursive 
)

bool NWildcard::CCensorNode::NeedCheckSubDirs (  )  const

bool NWildcard::CCensorNode::AreThereIncludeItems (  )  const

Definition at line 228 of file Wildcard.cpp.

References IncludeItems, and SubNodes.

bool NWildcard::CCensorNode::CheckPath ( const UString path,
bool  isFile,
bool include 
) const

Definition at line 269 of file Wildcard.cpp.

References CheckPath(), and SplitPathToParts().

bool NWildcard::CCensorNode::CheckPath ( const UString path,
bool  isFile 
) const

Definition at line 276 of file Wildcard.cpp.

References CheckPath().

bool NWildcard::CCensorNode::CheckPathToRoot ( bool  include,
UStringVector pathParts,
bool  isFile 
) const

Definition at line 284 of file Wildcard.cpp.

References CheckPathCurrent(), CheckPathToRoot(), CObjectVector< T >::Insert(), Name, and Parent.

Referenced by CheckPathToRoot().


Member Data Documentation

Definition at line 30 of file Wildcard.h.

Referenced by CheckPathToRoot().

Definition at line 36 of file Wildcard.h.

Referenced by CheckPathToRoot(), and FindSubNode().

Definition at line 38 of file Wildcard.h.

Referenced by AddItem(), AreThereIncludeItems(), CheckPath(), and FindSubNode().

Definition at line 39 of file Wildcard.h.

Referenced by AddItemSimple(), AreThereIncludeItems(), CheckPathCurrent(), and NeedCheckSubDirs().

Definition at line 40 of file Wildcard.h.

Referenced by AddItemSimple(), and CheckPathCurrent().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:21:48 2008 by  doxygen 1.5.6