Reprensents an access tree.
More...
#include <WsAccessTree.h>
|
| | WsAccessTree (FileSystemTreePtr fs, const std::set< std::string > &gid, const int &md, const path &rootPath, const std::string &stamp) |
| | Constructor for the AccessTree class. More...
|
| |
| | WsAccessTree (FileSystemTreePtr fs, const std::set< std::string > &gid, const int &md, const std::set< std::string > &names, const std::set< std::string > &ext, const path &rootPath, const std::string &stamp) |
| | Constructor for the AccessTree class. More...
|
| |
| | WsAccessTree (NodePtr n, const std::set< std::string > &gid, const int &md, const path &rootPath, const std::string &stamp) |
| | Constructor for the AccessTree class. More...
|
| |
| | WsAccessTree (NodePtr n, const std::set< std::string > &gid, const int &md, const std::set< std::string > &names, const std::set< std::string > &ext, const path &rootPath, const std::string &stamp) |
| | Constructor for the AccessTree class. More...
|
| |
| virtual int | build () |
| | Parses the fileSystemTree and builds the Tree containing only the nodes where the user has access. More...
|
| |
| virtual NodePtr | getRoot () |
| | Returns the root node of the menuTree. More...
|
| |
| virtual path & | getRootPath () |
| | get the root path More...
|
| |
| virtual const std::string & | getStamp () |
| | Get the stamp of the tree. More...
|
| |
| int | start () |
| | start traversing the Tree. More...
|
| |
Reprensents an access tree.
The access tree contains all the items the user has access to
Definition at line 24 of file WsAccessTree.h.
| WsAccessTree::WsAccessTree |
( |
FileSystemTreePtr |
fs, |
|
|
const std::set< std::string > & |
gid, |
|
|
const int & |
md, |
|
|
const path & |
rootPath, |
|
|
const std::string & |
stamp |
|
) |
| |
Constructor for the AccessTree class.
- Parameters
-
| fs | the fileSystemTree to use |
| gid | a std::set of group names/ids of the user |
| md | max depth default is no max depth (0) |
| WsAccessTree::WsAccessTree |
( |
FileSystemTreePtr |
fs, |
|
|
const std::set< std::string > & |
gid, |
|
|
const int & |
md, |
|
|
const std::set< std::string > & |
names, |
|
|
const std::set< std::string > & |
ext, |
|
|
const path & |
rootPath, |
|
|
const std::string & |
stamp |
|
) |
| |
Constructor for the AccessTree class.
- Parameters
-
| fs | the fileSystemTree to use |
| gid | a std::set of group names/ids of the user |
| names | the excluded names |
| ext | the excluded extensions |
| WsAccessTree::WsAccessTree |
( |
NodePtr |
n, |
|
|
const std::set< std::string > & |
gid, |
|
|
const int & |
md, |
|
|
const path & |
rootPath, |
|
|
const std::string & |
stamp |
|
) |
| |
Constructor for the AccessTree class.
- Parameters
-
| n | the Root node |
| gid | a std::set of group names/ids of the user |
| md | max depth default is no max depth (0) |
| WsAccessTree::WsAccessTree |
( |
NodePtr |
n, |
|
|
const std::set< std::string > & |
gid, |
|
|
const int & |
md, |
|
|
const std::set< std::string > & |
names, |
|
|
const std::set< std::string > & |
ext, |
|
|
const path & |
rootPath, |
|
|
const std::string & |
stamp |
|
) |
| |
Constructor for the AccessTree class.
- Parameters
-
| n | the root node |
| gid | a std::set of group names/ids of the user |
| names | the excluded names |
| ext | the excluded extensions |
| int WsAbstractTree::beginTraverseDir |
( |
NodePtr |
n | ) |
|
|
protectedvirtualinherited |
Called when a directory is being traversed.
- Parameters
-
| n | the NodePtr representing the directory being traversed |
- Returns
- SUCCESS or FAILURE if an error occured
Implements WsTreeTraversal.
Definition at line 76 of file WsAbstractTree.cpp.
| int WsAbstractTree::build |
( |
| ) |
|
|
virtualinherited |
Parses the fileSystemTree and builds the Tree containing only the nodes where the user has access.
- Returns
- SUCCESS if the tree was built without errors, FAILURE otherwise
Definition at line 66 of file WsAbstractTree.cpp.
| int WsAbstractTree::endTraverseDir |
( |
NodePtr |
n | ) |
|
|
protectedvirtualinherited |
Called when a directory has been completely traversed. ie all subnodes(recursively all sub nodes of subnodes etc..) have been traversed.
- Parameters
-
| n | The NodePtr representing the directory that has been completely traversed |
- Returns
- SUCCESS or FAILURE
Implements WsTreeTraversal.
Definition at line 121 of file WsAbstractTree.cpp.
| NodePtr WsAbstractTree::getRoot |
( |
| ) |
|
|
virtualinherited |
Returns the root node of the menuTree.
- Returns
- Pointer to the root of the menuTree
Definition at line 71 of file WsAbstractTree.cpp.
| path & WsAbstractTree::getRootPath |
( |
| ) |
|
|
virtualinherited |
get the root path
- Returns
- boost::filesystem::path representing the rootPath
Definition at line 157 of file WsAbstractTree.cpp.
| const string & WsAbstractTree::getStamp |
( |
| ) |
|
|
virtualinherited |
Get the stamp of the tree.
- Returns
- A std::string containing the stamp
Definition at line 162 of file WsAbstractTree.cpp.
| int WsTreeTraversal::start |
( |
| ) |
|
|
inherited |
| int WsAbstractTree::traverseFile |
( |
NodePtr |
n | ) |
|
|
protectedvirtualinherited |
Called when traversing a fileNode.
- Parameters
-
| n | A NodePtr representing the file being traversed |
- Returns
- SUCCESS or FAILURE
Implements WsTreeTraversal.
Definition at line 129 of file WsAbstractTree.cpp.
| int WsAbstractTree::m_currentDepth |
|
protectedinherited |
The current depth of the tree (ie number of levels)
Definition at line 129 of file WsAbstractTree.h.
| std::set<std::string> WsAbstractTree::m_exclExt |
|
protectedinherited |
| std::set<std::string> WsAbstractTree::m_exclNames |
|
protectedinherited |
| std::set<std::string> WsAbstractTree::m_gid |
|
protectedinherited |
| int WsAbstractTree::m_maxDepth |
|
protectedinherited |
The max depth of the tree (ie depth we don't want to exceed.
Definition at line 135 of file WsAbstractTree.h.
| path WsAbstractTree::m_rootPath |
|
protectedinherited |
| std::string WsAbstractTree::m_stamp |
|
protectedinherited |
The documentation for this class was generated from the following file:
- /Users/benoitdaccache/Documents/Dropbox/Programming/Ws/wscore/src/Tree/WsAccessTree.h