IMCFileIterator Struct Reference
[MCCore]

Inheritance diagram for IMCFileIterator:
IMCUnknown

List of all members.

Public Member Functions

virtual void MCCOMAPI First (IMCFile *aFile)=0
virtual void MCCOMAPI Next (IMCFile *aFile)=0
virtual boolean MCCOMAPI More (void)=0

Detailed Description

Defines an iterator of the a folder and its subfolders. To create such an iterator use : IShFileUtilities::CreateIMCFileIterator()

It can be used as follows:

 TMCCountedPtr<IMCFileIterator> iter;
 gFileUtilities->CreateIMCFileIterator(&iter,TMCString255("C:\MyFolder"),NULL);

 TMCCountedPtr<IMCFile> file;
 gFileUtilities->CreateIMCFile(&file);

 for (iter.First(file),iter.More();iter.Next(file))
 {
 ...
 }

Member Function Documentation

virtual void MCCOMAPI IMCFileIterator::First ( IMCFile aFile  )  [pure virtual]

Returns the first file.

Parameters:
aFile A pointer to an IMCFile that will contain the first file path.
virtual boolean MCCOMAPI IMCFileIterator::More ( void   )  [pure virtual]

Returns true if there are more files to iterate over.

virtual void MCCOMAPI IMCFileIterator::Next ( IMCFile aFile  )  [pure virtual]

Returns the next file.

Parameters:
aFile A pointer to an IMCFile that will contain the next file path.

The documentation for this struct was generated from the following file:
Generated on Mon Apr 26 22:47:44 2010 for Carrara SDK Doc by  doxygen 1.6.3