Ignore:
Timestamp:
07/02/15 11:07:42 (9 years ago)
Author:
Maciej Komosinski
Message:

ChainFileSystem? can merge Vopendir() results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/virtfile/virtfile.h

    r302 r410  
    1010#include <common/nonstd_dir.h>
    1111#include <string>
     12#include <set>
    1213using std::string;
    1314
     
    108109        bool Vfexists(const char* path);
    109110        VirtDIR *Vopendir(const char* path);
     111        virtual VirtDIR *internalopendir(const char* path) {return NULL;}
    110112        bool Vmkdir(const char* path);
    111113        bool Vmkdirs(const char* path);
    112114        bool Vdirexists(const char* path, bool is_writable);
     115
     116        class Dir: public VirtDIR
     117        {
     118        ChainFileSystem *first;
     119        VirtFileSystem *second;
     120        string path;
     121        std::set<string> duplicates;
     122        VirtDIR *dir;
     123          public:
     124        Dir(string _path,ChainFileSystem *_first,VirtFileSystem *_second):first(_first),second(_second),path(_path),dir(NULL) {}
     125        ~Dir();
     126        dirent* Vreaddir();
     127        };
    113128};
    114129
Note: See TracChangeset for help on using the changeset viewer.