Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsLatestNews.h
Go to the documentation of this file.
1 /*
2  *
3  * Filename: WsLatestNews.h
4  *
5  * Description:
6  *
7  * Created: 04/18/2012 12:34:02 PM
8  *
9  * Author: Benoit Daccache, ben.daccache@gmail.com
10  *
11  */
12 
13 #ifndef WS_LATEST_NEWS_H__
14 #define WS_LATEST_NEWS_H__
15 
17 #include <Tree/WsAccessTree.h>
18 
20 public:
22 
23  vector<NodePtr> getLatestNews(int nb);
24 
25 
26 private:
28  int endTraverseDir(NodePtr n);
29  int traverseFile(NodePtr n);
30 
31  vector<NodePtr> m_vect;
32  int m_maxSize;
33 
34 
35 };
36 
37 #endif
Reprensents the menu tree of a group. If a group does not have access to a Node, this Node will not s...
boost::shared_ptr< WsAbstractNode > NodePtr
vector< NodePtr > getLatestNews(int nb)
int endTraverseDir(NodePtr n)
Called when a directory has been completely traversed. ie all subnodes(recursively all sub nodes of s...
vector< NodePtr > m_vect
Definition: WsLatestNews.h:31
Used to traverse the tree.
int traverseFile(NodePtr n)
Called when traversing a fileNode.
Structure representing all the fs tree from the root.
WsLatestNews(NodePtr mt)
int beginTraverseDir(NodePtr n)
Called when a directory is being traversed.