#include <Wildcard.h>
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< CCensorNode > | SubNodes |
| CObjectVector< CItem > | IncludeItems |
| CObjectVector< CItem > | ExcludeItems |
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 | |
| CCensorNode * | Parent |
Definition at line 28 of file Wildcard.h.
| NWildcard::CCensorNode::CCensorNode | ( | ) | [inline] |
| NWildcard::CCensorNode::CCensorNode | ( | const UString & | name, | |
| CCensorNode * | parent | |||
| ) | [inline] |
Definition at line 36 of file Wildcard.h.
| 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().
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] |
Definition at line 247 of file Wildcard.cpp.
References CheckPathCurrent(), CObjectVector< T >::Delete(), FindSubNode(), CObjectVector< T >::Front(), index, CBaseRecordVector::Size(), and SubNodes.
Referenced by CheckPath(), CheckPathCurrent(), and DecompressArchive().
| 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().
Definition at line 187 of file Wildcard.cpp.
References AddItemSimple(), CCensorNode(), CObjectVector< T >::Delete(), DoesNameContainWildCard(), FindSubNode(), CObjectVector< T >::Front(), index, NWildcard::CItem::PathParts, CBaseRecordVector::Size(), and SubNodes.
Referenced by AddItem(), and AddItem2().
| void NWildcard::CCensorNode::AddItem | ( | bool | include, | |
| const UString & | path, | |||
| bool | recursive, | |||
| bool | forFile, | |||
| bool | forDir | |||
| ) |
Definition at line 207 of file Wildcard.cpp.
References AddItem(), NWildcard::CItem::ForDir, NWildcard::CItem::ForFile, NWildcard::CItem::PathParts, NWildcard::CItem::Recursive, and SplitPathToParts().
Definition at line 294 of file Wildcard.cpp.
References AddItem(), CStringBase< T >::Delete(), IsCharDirLimiter(), CStringBase< T >::IsEmpty(), and CStringBase< T >::Length().
| bool NWildcard::CCensorNode::NeedCheckSubDirs | ( | ) | const |
Definition at line 217 of file Wildcard.cpp.
References IncludeItems, NWildcard::CItem::PathParts, NWildcard::CItem::Recursive, and CBaseRecordVector::Size().
| bool NWildcard::CCensorNode::AreThereIncludeItems | ( | ) | const |
| 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().
CCensorNode* NWildcard::CCensorNode::Parent [private] |
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().
1.5.6