GME  13
Public Member Functions
CSearch Class Reference

The Search Class. More...

#include <search.h>

List of all members.

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)

Detailed Description

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.

Definition at line 17 of file search.h.


Constructor & Destructor Documentation

Definition at line 21 of file SearchAlg.cpp.

CSearch::~CSearch ( ) [virtual]

Definition at line 27 of file SearchAlg.cpp.


Member Function Documentation

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]

Definition at line 28 of file search.h.

BOOL CSearch::Create ( LPCTSTR  lpszWindowName,
DWORD  dwStyle,
const RECT &  rect,
CWnd *  pParentWnd,
UINT  nID,
CFile *  pPersist = NULL,
BOOL  bStorage = FALSE,
BSTR  bstrLicKey = NULL 
) [inline]

Definition at line 35 of file search.h.

CLSID const& CSearch::GetClsid ( ) [inline]

Definition at line 22 of file search.h.

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.

Parameters:
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.
Returns:
Returns void, however, the actions of Search will fill the parameter disp with all matches found during the search.

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.


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