| 87 | |
| 88 | public: |
| 89 | class Entry |
| 90 | { |
| 91 | std::shared_ptr<RecordType> _record; |
| 92 | public: |
| 93 | Entry() |
| 94 | {} |
| 95 | |
| 96 | Entry(const std::shared_ptr<RecordType>& record) : |
| 97 | _record(record) |
| 98 | {} |
| 99 | |
| 100 | std::shared_ptr<RecordType>& getRecord() |
| 101 | { |
| 102 | return _record; |
| 103 | } |
| 104 | |
| 105 | bool isDirectory() const |
| 106 | { |
| 107 | return !_record; |
| 108 | } |
| 109 | }; |
| 110 | |
| 111 | private: |
| 112 | typedef std::map<Path, Entry> Entries; |