#include <iobrowse.h>
The IoBrowserIterator interface for a given Url. This IoBrowserIterator needs to be implemented for each protocol that support kind of directories. (e.g. "file", "zip")
Public Member Functions | |
MAXON_METHOD const Url & | GetBasePath () const |
MAXON_METHOD Result< void > | Reset () |
MAXON_METHOD Result< void > | GetNext () |
MAXON_METHOD Bool | HasEntry () const |
MAXON_METHOD Url | GetCurrentPath () const |
MAXON_METHOD IOBROWSEFLAGS | IoGetFlags () const |
MAXON_METHOD Result< IOATTRIBUTES > | IoGetAttributes () const |
MAXON_METHOD Result< UniversalDateTime > | IoGetTime (IOTIMEMODE mode) const |
MAXON_METHOD Int64 | GetSize () const |
MAXON_METHOD String | GetExtraData () const |
MAXON_ADD_TO_REFERENCE_CLASS (const IoBrowseRef &operator*() { return *(IoBrowseRef *)((char *) this+(S::HAS_ERROR ? SIZEOF(void *) :0));} Result< void > operator++() { return GetNext();} template< typename SUPER > using ResultFunctions=ResultIteratorFunctions< ObjectRef::ResultFunctions< SUPER >>;) | |
Private Member Functions | |
MAXON_INTERFACE (IoBrowseInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.iobrowse") | |
|
private |
MAXON_METHOD const Url& GetBasePath | ( | ) | const |
Returns corresponding Url.
MAXON_METHOD Result<void> Reset | ( | ) |
Restart browsing of the directory.
MAXON_METHOD Result<void> GetNext | ( | ) |
Browses to the next object in the list. You need to call GetNext() before you get the first object. A typical use is: while (browse->GetNext()) { n = browse->GetCurrentPath(); }
MAXON_METHOD Bool HasEntry | ( | ) | const |
MAXON_METHOD Url GetCurrentPath | ( | ) | const |
Returns the current Url.
MAXON_METHOD IOBROWSEFLAGS IoGetFlags | ( | ) | const |
Returns the flags (IOBROWSEFLAGS) of the children.
MAXON_METHOD Result<IOATTRIBUTES> IoGetAttributes | ( | ) | const |
Returns the flags (IOATTRIBUTES) of the children.
MAXON_METHOD Result<UniversalDateTime> IoGetTime | ( | IOTIMEMODE | mode | ) | const |
MAXON_METHOD Int64 GetSize | ( | ) | const |
Returns the size of the current file.
MAXON_METHOD String GetExtraData | ( | ) | const |
Returns some extra data.
MAXON_ADD_TO_REFERENCE_CLASS | ( | const IoBrowseRef &operator*() { return *(IoBrowseRef *)((char *) this+(S::HAS_ERROR ? SIZEOF(void *) :0));} Result< void > operator++() { return GetNext();} template< typename SUPER > using | ResultFunctions = ResultIteratorFunctions< ObjectRef::ResultFunctions< SUPER >>; | ) |