Class: TParentlessDirectoriesIterator

Declaration: FileSystemInterface.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Iterates over all parentless (for example, root or topmost) directories on all mounted volumes.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive from this class.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TParentlessDirectoriesIterator::TParentlessDirectoriesIterator

;
  1. TParentlessDirectoriesIterator (const TPropertyIDSet & properties =kNoProperties, const TPropertyQuery & aQuery =kNoQuery)
  2. TParentlessDirectoriesIterator (const TParentlessDirectoriesIterator & copy)

Interface Category:

API.

Purpose:

  1. Constructs a TParentlessDirectoriesIterator, specifying a set of properties to be fetched for each entity found, and a query to use as a filter.
  2. Copy constructor.

Calling Context:

  1. Call this function directly.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TParentlessDirectoriesIterator::operator=

TParentlessDirectoriesIterator & operator =(const TParentlessDirectoriesIterator & right)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TParentlessDirectoriesIterator::~

TParentlessDirectoriesIterator ; virtual ~ TParentlessDirectoriesIterator ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TParentlessDirectoriesIterator::First

  1. virtual TDirectory First ()
  2. virtual TDirectory First (TPropertySet & fillinProperties)

Interface Category:

API.

Purpose:

  1. Resets the iterator and returns the first item in the iteration.
  2. Resets the iterator, returns the first item in the iteration, and returns all properties specified in fillinProperties.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.

Parameters:

Return Value:

A TDirectory representing the first item in the iteration, or kEndOfIteration if there are no items to return.

Exceptions:

Throws TFileSystemObjectInvalid if the iterator has not been initialized.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TParentlessDirectoriesIterator::Next

  1. virtual TDirectory Next ()
  2. virtual TDirectory Next (TPropertySet & fillinProperties)

Interface Category:

API.

Purpose:

  1. Returns the next item in the iteration.
  2. Returns the next item in the iteration, and returns all properties specified in fillinProperties.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.

Parameters:

Return Value:

A TDirectory representing the next item in the iteration, or kEndOfIteration if there are no more items to return.

Exceptions:

Throws TFileSystemObjectInvalid if the iterator has not been initialized.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.