Public Member Functions | Public Attributes | Private Member Functions

CConcIndexatorInvoker Class Reference

CConcIndexatorInvoker is a class for invoking an index process. More...

#include <ConcIndexator.h>

Inheritance diagram for CConcIndexatorInvoker:
Inheritance graph
[legend]
Collaboration diagram for CConcIndexatorInvoker:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Public Attributes

Private Member Functions


Detailed Description

CConcIndexatorInvoker is a class for invoking an index process.

This class was established to start, to stop and to monitor an indexing process. To start it a user should call function CConcIndexatorInvoker::BuildIndex. To stop the process a user should set CConcIndexatorInvoker::m_bStoppedByUser to true.


Constructor & Destructor Documentation

CConcIndexatorInvoker::CConcIndexatorInvoker (  ) 

Member Function Documentation

string CConcIndexatorInvoker::GetTimeStatisticsFileName ( string  Path  )  const [private]

References MakeFName().

Referenced by WriteTimeStatistics().

Here is the call graph for this function:

Here is the caller graph for this function:

string CConcIndexatorInvoker::GetErrorLogFileName ( string  Path  )  const [private]

References MakeFName().

Referenced by BuildIndex().

Here is the call graph for this function:

Here is the caller graph for this function:

void CConcIndexatorInvoker::WriteTimeStatistics ( const CConcIndexator Indexator,
DWORD  CorpusEndTokenNo,
DWORD  MaxTokenCountInOnePeriod 
) const [private]
bool CConcIndexatorInvoker::FinalizeIndex ( CConcIndexator Indexator,
DWORD  CorpusEndTokenNo,
DWORD  MaxTokenCountInOnePeriod 
) const [private]
bool CConcIndexatorInvoker::BuildOnlyMorphIndex ( string  ProjectFile  )  const [private]

References CConcIndexator::CreateMorphIndex(), Format(), CConcIndexator::LoadProject(), and SetCurrMessage().

Referenced by BuildIndex().

Here is the call graph for this function:

Here is the caller graph for this function:

void CConcIndexatorInvoker::SetCurrMessage ( string  Message  )  const

outputs a message to stdout or to GUI

References m_bStdout, and m_CurrMessage.

Referenced by BuildIndex(), BuildOnlyMorphIndex(), FinalizeIndex(), and WriteTimeStatistics().

Here is the caller graph for this function:

bool CConcIndexatorInvoker::BuildIndex ( string  ProjectFile  ) 

builds index files for project ProjectFile

References _MAX_PATH, CHitBorders::AddBreakByName(), CStringIndexator::AddInputLoadIndexToMemoryLoadIndex(), CStringIndexator::AddMemoryLoadIndexToMainLoadIndex(), BuildOnlyMorphIndex(), CMyTimeSpanHolder::ClearTimers(), CConcIndexator::DestroyIndex(), CMyTimeSpanHolder::EndTimer(), ErrorMessage(), FinalizeIndex(), Format(), CSourceFileHolder::FoundNotExistedFile(), FreeDwdsThesaurus(), GetErrorLogFileName(), CGraphmatFile::GetLastError(), CIndexItem::GetMaximalNumberOfRunningTokens(), CConcIndexator::GetMaxTokenCountInOnePeriod(), GetPathByFile(), CSourceFileHolder::GetSourceFile(), CSourceFileHolder::GetSourceFilesCount(), CConcIndexator::IndexOneFile(), CConcIndexator::InitGraphanProperties(), IsTarFile(), CGraphmatFile::LoadDicts(), LoadDwdsThesaurus(), CConcIndexator::LoadSourceFilesAndOptions(), m_bCorporaProcessing, m_bOnlyReindexMorphology, CConcIndexator::m_bResumeOnIndexErrors, m_bSkipInitialFileChecking, m_bStoppedByUser, CConcIndexator::m_CorpusFiles, m_CurrentSourceFileName, m_CurrentSourceFileNo, CStringIndexator::m_Path, m_Profiler, m_SourceFilesNumber, CExpc::m_strCause, newhandler(), pDwdsThesaurus, PredefinedFileBreakName, ReadSourceFile(), CStringIndexator::SaveMemoryLoadIndex(), TiXmlBase::SetCondenseWhiteSpace(), SetCurrMessage(), CConcIndexator::StartIndexing(), CMyTimeSpanHolder::StartTimer(), tar_close(), tar_open(), CConcIndexator::TerminateIndexing(), CConcIndexator::UseDwdsThesaurus(), and WriteTimeStatistics().

Here is the call graph for this function:


Member Data Documentation

if true, CConcIndexatorInvoker tries to stop indexing

Referenced by BuildIndex(), CConcIndexatorInvoker(), and CConcHolder::GetAllHits().

if true, indexing is on

Referenced by BuildIndex(), and CConcIndexatorInvoker().

if true, then BuildIndex should only rebuild MorphPattern index

Referenced by BuildIndex(), and CConcIndexatorInvoker().

if true, then there is no initial checking whether the source files exist

Referenced by BuildIndex(), and CConcIndexatorInvoker().

the last message from indexing process

Referenced by SetCurrMessage().

should DDC send all messages to stdout

Referenced by CConcIndexatorInvoker(), CConcHolder::GetOccurrences(), and SetCurrMessage().

the index of the currently processing source file

Referenced by BuildIndex(), and CConcIndexatorInvoker().

the number of files to index

Referenced by BuildIndex(), and CConcIndexatorInvoker().

the name of file

Referenced by BuildIndex().

a slot to gather profiling information for loading stage

Referenced by BuildIndex(), CConcIndexatorInvoker(), CQueryTokenNode::EvaluateWithoutHits(), FinalizeIndex(), and WriteTimeStatistics().


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