1 /* 2 * Copyright 2008, Axel Dörfler, axeld@pinc-software.de. 3 * This file may be used under the terms of the MIT License. 4 */ 5 #ifndef DIRECTORY_ITERATOR_H 6 #define DIRECTORY_ITERATOR_H 7 8 9 #include <SupportDefs.h> 10 11 12 class Inode; 13 14 class DirectoryIterator { 15 public: 16 DirectoryIterator(Inode* inode); 17 virtual ~DirectoryIterator(); 18 19 virtual status_t GetNext(char* name, size_t* _nameLength, ino_t* id); 20 21 virtual status_t Rewind(); 22 23 private: 24 DirectoryIterator(const DirectoryIterator&); 25 DirectoryIterator &operator=(const DirectoryIterator&); 26 // no implementation 27 28 protected: 29 Inode* fInode; 30 off_t fOffset; 31 }; 32 33 #endif // DIRECTORY_ITERATOR_H 34