forked from winnfsd/winnfsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FileTree.h
25 lines (19 loc) · 808 Bytes
/
FileTree.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _FILETREE_H_
#define _FILETREE_H_
#include "FileTable.h"
class CFileTree
{
public:
bool static const debug = false;
FILE_ITEM AddItem(const char *absolutePath, unsigned char *handle);
void RemoveItem(const char *absolutePath);
void RenameItem(const char *absolutePathFrom, const char *absolutePathTo);
tree_node_<FILE_ITEM>* FindFileItemForPath(const char *absolutePath);
void GetNodeFullPath(tree_node_<FILE_ITEM>* node, std::string &fullPath);
protected:
tree_node_<FILE_ITEM>* findNodeFromRootWithPath(const char *path);
tree_node_<FILE_ITEM>* findNodeWithPathFromNode(const char *path, tree_node_<FILE_ITEM>* node);
tree_node_<FILE_ITEM>* findParentNodeFromRootForPath(const char *path);
};
extern void DisplayTree(tree_node_<FILE_ITEM>* node, int level);
#endif