mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-20 10:30:01 +00:00
d4a7107bde
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@404 aa027e90-d47c-11dd-86d7-074df07e0730
38 lines
673 B
C++
38 lines
673 B
C++
#ifndef __NUFX_DIRECTORYENTRY_H__
|
|
#define __NUFX_DIRECTORYENTRY_H__
|
|
|
|
#include "Entry.h"
|
|
|
|
#include <vector>
|
|
#include <dirent.t>
|
|
|
|
namespace NuFX {
|
|
|
|
|
|
class DirectoryEntry : public Entry
|
|
{
|
|
public:
|
|
|
|
|
|
EntryPointer lookup(const std::string & name) const;
|
|
|
|
EntryPointer childAtIndex(unsigned index) const;
|
|
|
|
|
|
protected:
|
|
|
|
// creates directory if it does not exist.
|
|
DirectoryEntryPointer dir_lookup(const std::string &name);
|
|
|
|
private:
|
|
|
|
|
|
std::vector<EntryPointer> _children;
|
|
|
|
typedef std::vector<EntryPointer>::iterator EntryIterator;
|
|
|
|
};
|
|
}
|
|
|
|
|
|
#endif |