Wittyshare
0.2
|
Instanciates the search. More...
#include <WsSearch.h>
Public Member Functions | |
WsSearch (FileSystemTreePtr fst, const std::string &query) | |
Constructor for the Search object. More... | |
~WsSearch () | |
int | load () |
Loads all search results. More... | |
int | getSize () |
Loads all search results. More... | |
vector< WsResultItem > | getResults (const std::set< std::string > &groups) |
Get list of documents readable by person member of all groups passed in parameter. More... | |
int | loadModule () |
loads the search module. More... | |
Private Attributes | |
WsAbstractSearch * | m_searchImpl |
FileSystemTreePtr | m_fst |
string | m_query |
Instanciates the search.
When a search is performed, this class is instanciated with the correct params, the search module is then loaded and search performed
Definition at line 34 of file WsSearch.h.
WsSearch::WsSearch | ( | FileSystemTreePtr | fst, |
const std::string & | query | ||
) |
Constructor for the Search object.
fst | the file system tree in memory |
query | the search query to perform |
Definition at line 15 of file WsSearch.cpp.
WsSearch::~WsSearch | ( | ) |
Definition at line 22 of file WsSearch.cpp.
vector< WsResultItem > WsSearch::getResults | ( | const std::set< std::string > & | groups | ) |
Get list of documents readable by person member of all groups passed in parameter.
groups | set of group names |
Definition at line 41 of file WsSearch.cpp.
int WsSearch::getSize | ( | ) |
Loads all search results.
Definition at line 36 of file WsSearch.cpp.
int WsSearch::load | ( | ) |
Loads all search results.
Definition at line 27 of file WsSearch.cpp.
int WsSearch::loadModule | ( | ) |
loads the search module.
Definition at line 46 of file WsSearch.cpp.
|
private |
Definition at line 73 of file WsSearch.h.
|
private |
Definition at line 74 of file WsSearch.h.
|
private |
Definition at line 72 of file WsSearch.h.