Poco

class TraverseBase

Library: Foundation
Package: Filesystem
Header: Poco/DirectoryIteratorStrategy.h

Inheritance

Known Derived Classes: ChildrenFirstTraverse, SiblingsFirstTraverse

Member Summary

Member Functions: isDirectory, isFiniteDepth

Types

DepthFunPtr

typedef std::pointer_to_unary_function < const Stack &, UInt16 > DepthFunPtr;

Stack

typedef std::stack < DirectoryIterator > Stack;

Enumerations

Anonymous

D_INFINITE = 0

Special value for infinite traverse depth.

Constructors

TraverseBase

TraverseBase(
    DepthFunPtr depthDeterminer,
    UInt16 maxDepth = D_INFINITE
);

Member Functions

isDirectory protected

bool isDirectory(
    Poco::File & file
);

isFiniteDepth protected

bool isFiniteDepth();

Variables

_depthDeterminer protected

DepthFunPtr _depthDeterminer;

_itEnd protected

DirectoryIterator _itEnd;

_maxDepth protected

UInt16 _maxDepth;