Switch to unified view

a/libupnpp/vdir.hxx b/libupnpp/vdir.hxx
...
...
26
 */
26
 */
27
27
28
#include <time.h>
28
#include <time.h>
29
29
30
#include <string>
30
#include <string>
31
#include <map>
31
#include <unordered_map>
32
32
33
class VirtualDir {
33
class VirtualDir {
34
public:
34
public:
35
    static VirtualDir* getVirtualDir();
35
    static VirtualDir* getVirtualDir();
36
    bool addFile(const std::string& path, const std::string& name, 
36
    bool addFile(const std::string& path, const std::string& name, 
...
...
43
    };
43
    };
44
    FileEnt *getFile(const std::string& path, const std::string& name);
44
    FileEnt *getFile(const std::string& path, const std::string& name);
45
45
46
private:
46
private:
47
    VirtualDir() {}
47
    VirtualDir() {}
48
48
    std::map<std::string, std::map<std::string, FileEnt> > m_dirs;
49
    std::unordered_map<std::string, std::unordered_map<std::string, FileEnt> > 
50
  m_dirs;
49
};
51
};
50
52
51
53
52
#endif /* _VDIR_H_X_INCLUDED_ */
54
#endif /* _VDIR_H_X_INCLUDED_ */
53
55