Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
None.
Inherited By:
None.
Purpose:
Iterates over the collection of volumes that the client can access.
Instantiation:
Allocate on the heap or the stack. The stack is preferred
Deriving Classes:
Do not derive from this class.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- virtual TVolume Next ()
- virtual TVolume Next (TPropertySet & fillinProperties)
Interface Category:
API.
Purpose:
- Returns the next TVolume contained in the volume list.
- Returns the next TVolume contained in the volume list, and returns all properties that match the ones in fillin.
Calling Context:
- Call this function directly.
- Call this function directly.
Parameters:
- Takes no parameters.
- TPropertySet & fillinProperties -The set of requested properties to be filled in.
Return Value:
The TVolume that is next in the iteration. If all volumes have been exhausted, kEndOfIteration is returned.
Exceptions:
Throws TFileSystemObjectInvalid if First has not been called, or if the object has not been initialized.
Concurrency:
Not multithread safe. This is a handle class.
Other Considerations:
None.
- virtual TVolume First ()
- virtual TVolume First (TPropertySet & fillinProperties)
Interface Category:
API.
Purpose:
- Resets the iterator and returns the first volume in the iteration.
- Resets the iterator, returns the first volume in the iteration, and returns all properties that match the ones in fillin.
Calling Context:
Call this function directly.
Call this function directly.
Parameters:
- Takes no parameters.
- TPropertySet & fillinProperties -The set of requested properties to be filled in.
Return Value:
The first TVolume in the iteration. If the caller can see no volumes, then kEndOfIteration is returned.
Exceptions:
Throws TFileSystemObjectInvalid if the object has not been initialized.
Concurrency:
Not multithread safe. This is a handle class.
Other Considerations:
None.
virtual ~ TVolumesIterator ()
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. This is a handle class.
Other Considerations:
None.
TVolumesIterator & operator =(const TVolumesIterator & 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. This is a handle class.
Other Considerations:
None.
- TVolumesIterator (const TPropertyIDSet & properties =kNoProperties, const TPropertyQuery & aQuery =kNoQuery)
- TVolumesIterator (const TVolumesIterator & copy)
Interface Category:
API.
Purpose:
- Constructs an iterator to find volumes that satisfy aQuery and to return their properties.
- Copy constructor.
Calling Context:
- Call this function directly.
- Called to copy an object.
Parameters:
- const TPropertyIDSet & properties =kNoProperties -The properties to match.
- const TPropertyQuery & aQuery =kNoQuery -The queries to satisfy.
- const TVolumesIterator & copy -The object to copy.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe. This is a handle class.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.