GME
13
|
The Search Class. More...
#include <search.h>
Public Member Functions | |
CLSID const & | GetClsid () |
virtual BOOL | Create (LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID, CCreateContext *pContext=NULL) |
BOOL | Create (LPCTSTR lpszWindowName, DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID, CFile *pPersist=NULL, BOOL bStorage=FALSE, BSTR bstrLicKey=NULL) |
LPUNKNOWN | GetMgaProject () |
void | SetMgaProject (LPUNKNOWN) |
void | OpenProject (LPCTSTR connStr) |
void | SelMgaObjects (LPUNKNOWN p_selMgaObjs) |
void | AboutBox () |
CSearch (CInput inp) | |
virtual | ~CSearch () |
void | Search (IMgaFolder *root, IMgaObjects *scope, IMgaFCO *selected, CComPtr< IMgaFCOs > disp, CProgressCtrl *Progress) |
Function to execute the correct input-based search. | |
void | SearchResults (CComPtr< IMgaFCOs > old_results, CComPtr< IMgaFCOs > disp, CProgressCtrl *Progress) |
bool | Check (IMgaFCO *fco, int type) |
bool | CheckLogicalCombination (IMgaFCO *fco, bool(CSearch::*Chk)(IMgaFCO *fco, bool first)) |
int | Matches (IMgaFCO *fco, bool first) |
bool | PerformLogical (int first, int second) |
The Search Class.
Performs the search algorithm. The input is validated and the output list empty when this class is instantiated. Any match found will be added to the tail of the output list.
CSearch::CSearch | ( | CInput | inp | ) |
Definition at line 21 of file SearchAlg.cpp.
CSearch::~CSearch | ( | ) | [virtual] |
Definition at line 27 of file SearchAlg.cpp.
void CSearch::AboutBox | ( | ) |
Definition at line 47 of file search.cpp.
bool CSearch::Check | ( | IMgaFCO * | fco, |
int | type | ||
) |
bool CSearch::CheckLogicalCombination | ( | IMgaFCO * | fco, |
bool(CSearch::*)(IMgaFCO *fco, bool first) | Chk | ||
) |
virtual BOOL CSearch::Create | ( | LPCTSTR | lpszClassName, |
LPCTSTR | lpszWindowName, | ||
DWORD | dwStyle, | ||
const RECT & | rect, | ||
CWnd * | pParentWnd, | ||
UINT | nID, | ||
CCreateContext * | pContext = NULL |
||
) | [inline, virtual] |
BOOL CSearch::Create | ( | LPCTSTR | lpszWindowName, |
DWORD | dwStyle, | ||
const RECT & | rect, | ||
CWnd * | pParentWnd, | ||
UINT | nID, | ||
CFile * | pPersist = NULL , |
||
BOOL | bStorage = FALSE , |
||
BSTR | bstrLicKey = NULL |
||
) | [inline] |
CLSID const& CSearch::GetClsid | ( | ) | [inline] |
LPUNKNOWN CSearch::GetMgaProject | ( | ) |
Definition at line 18 of file search.cpp.
int CSearch::Matches | ( | IMgaFCO * | fco, |
bool | first | ||
) |
Definition at line 734 of file SearchAlg.cpp.
void CSearch::OpenProject | ( | LPCTSTR | connStr | ) |
Definition at line 33 of file search.cpp.
bool CSearch::PerformLogical | ( | int | first, |
int | second | ||
) |
Definition at line 712 of file SearchAlg.cpp.
void CSearch::Search | ( | IMgaFolder * | root, |
IMgaObjects * | scope, | ||
IMgaFCO * | selected, | ||
CComPtr< IMgaFCOs > | disp, | ||
CProgressCtrl * | Progress | ||
) |
Function to execute the correct input-based search.
root | : The project root folder, for a global search. |
scope | : The collection of containers (if any) where local search should be performed |
selected | : The selected object, for a reference search. |
disp | : An empty list that will be used to store the results. |
Progress | : A Progress Control to keep the user aware that the search is progressing. |
Definition at line 32 of file SearchAlg.cpp.
void CSearch::SearchResults | ( | CComPtr< IMgaFCOs > | old_results, |
CComPtr< IMgaFCOs > | disp, | ||
CProgressCtrl * | Progress | ||
) |
Definition at line 674 of file SearchAlg.cpp.
void CSearch::SelMgaObjects | ( | LPUNKNOWN | p_selMgaObjs | ) |
Definition at line 41 of file search.cpp.
void CSearch::SetMgaProject | ( | LPUNKNOWN | propVal | ) |
Definition at line 25 of file search.cpp.