changed: there is one dir called root (has parent_id -1)
(we have an owner, group, privileges etc of the root dir) the root.id of course is not -1 git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@468 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
17
core/dirs.h
17
core/dirs.h
@@ -29,21 +29,12 @@ private:
|
||||
public: // !! temporarily
|
||||
|
||||
|
||||
// id = -1;
|
||||
Item root;
|
||||
|
||||
|
||||
DirContainer dir_table;
|
||||
|
||||
|
||||
// parent (or -1), item
|
||||
//typedef std::multimap<long, Item> DirTable;
|
||||
//DirTable dir_table;
|
||||
|
||||
|
||||
bool ExtractName(const char * & s, std::string & name);
|
||||
|
||||
|
||||
void CheckRootDir();
|
||||
|
||||
|
||||
|
||||
|
||||
public:
|
||||
@@ -57,6 +48,8 @@ public:
|
||||
|
||||
bool IsDir(long id);
|
||||
|
||||
bool GetRootDir(Item ** item);
|
||||
|
||||
bool GetDir(const std::string & path, Item ** item);
|
||||
bool GetDir(const std::string & name, long parent, Item ** item);
|
||||
|
||||
|
Reference in New Issue
Block a user