Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
WsSearchRSS Class Reference

#include <WsSearchRSS.h>

Inheritance diagram for WsSearchRSS:
Inheritance graph
Collaboration diagram for WsSearchRSS:
Collaboration graph

Public Member Functions

 WsSearchRSS (NodePtr mt)
 
vector< NodePtrgetRSS (int nb)
 
int start ()
 start traversing the Tree. More...
 

Protected Attributes

NodePtr m_root
 

Private Member Functions

int beginTraverseDir (NodePtr n)
 Called when a directory is being traversed. More...
 
int endTraverseDir (NodePtr n)
 Called when a directory has been completely traversed. ie all subnodes(recursively all sub nodes of subnodes etc..) have been traversed. More...
 
int traverseFile (NodePtr n)
 Called when traversing a fileNode. More...
 

Private Attributes

vector< NodePtrm_vect
 
int m_maxSize
 

Detailed Description

Definition at line 19 of file WsSearchRSS.h.

Constructor & Destructor Documentation

WsSearchRSS::WsSearchRSS ( NodePtr  mt)

Definition at line 16 of file WsSearchRSS.cpp.

Member Function Documentation

int WsSearchRSS::beginTraverseDir ( NodePtr  n)
privatevirtual

Called when a directory is being traversed.

Parameters
nthe NodePtr representing the directory being traversed
Returns
SUCCESS or FAILURE if an error occured

Implements WsTreeTraversal.

Definition at line 28 of file WsSearchRSS.cpp.

int WsSearchRSS::endTraverseDir ( NodePtr  n)
privatevirtual

Called when a directory has been completely traversed. ie all subnodes(recursively all sub nodes of subnodes etc..) have been traversed.

Parameters
nThe NodePtr representing the directory that has been completely traversed
Returns
SUCCESS or FAILURE

Implements WsTreeTraversal.

Definition at line 33 of file WsSearchRSS.cpp.

vector< NodePtr > WsSearchRSS::getRSS ( int  nb)

Definition at line 21 of file WsSearchRSS.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int WsTreeTraversal::start ( )
inherited

start traversing the Tree.

Definition at line 21 of file WsTreeTraversal.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int WsSearchRSS::traverseFile ( NodePtr  n)
privatevirtual

Called when traversing a fileNode.

Parameters
nA NodePtr representing the file being traversed
Returns
SUCCESS or FAILURE

Implements WsTreeTraversal.

Definition at line 38 of file WsSearchRSS.cpp.

Here is the call graph for this function:

Member Data Documentation

int WsSearchRSS::m_maxSize
private

Definition at line 32 of file WsSearchRSS.h.

NodePtr WsTreeTraversal::m_root
protectedinherited

Definition at line 99 of file WsTreeTraversal.h.

vector<NodePtr> WsSearchRSS::m_vect
private

Definition at line 31 of file WsSearchRSS.h.


The documentation for this class was generated from the following files: