2014-02-16 16:19:06 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "vfsDirBase.h"
|
|
|
|
|
|
|
|
|
|
class vfsDir : public vfsDirBase
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
std::shared_ptr<vfsDirBase> m_stream;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
vfsDir();
|
2014-04-01 02:33:55 +02:00
|
|
|
vfsDir(const std::string& path);
|
2014-02-16 16:19:06 +01:00
|
|
|
|
2014-04-01 02:33:55 +02:00
|
|
|
virtual bool Open(const std::string& path) override;
|
2014-02-16 16:19:06 +01:00
|
|
|
virtual bool IsOpened() const override;
|
2014-04-01 02:33:55 +02:00
|
|
|
virtual bool IsExists(const std::string& path) const override;
|
2014-04-10 00:54:32 +02:00
|
|
|
virtual const std::vector<DirEntryInfo>& GetEntries() const override;
|
2014-02-16 16:19:06 +01:00
|
|
|
virtual void Close() override;
|
2014-04-01 02:33:55 +02:00
|
|
|
virtual std::string GetPath() const override;
|
2014-02-16 16:19:06 +01:00
|
|
|
|
2014-04-01 02:33:55 +02:00
|
|
|
virtual bool Create(const std::string& path) override;
|
2014-02-16 16:19:06 +01:00
|
|
|
//virtual bool Create(const DirEntryInfo& info) override;
|
2014-04-01 02:33:55 +02:00
|
|
|
virtual bool Rename(const std::string& from, const std::string& to) override;
|
|
|
|
|
virtual bool Remove(const std::string& path) override;
|
2014-02-16 16:19:06 +01:00
|
|
|
virtual const DirEntryInfo* Read() override;
|
2014-04-10 00:54:32 +02:00
|
|
|
};
|