C# Class SIL.FieldWorks.LexText.Controls.ParserConnection

Handles acquiring a parser and safely subscribing to and receiving events from it.
Inheritance: SIL.Utils.FwDisposableBase, IAsyncResult
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
BeginTryAWord ( string sForm, bool fDoTrace ) : IAsyncResult

place an asynchronous request for tracing the word

BeginTryAWord ( string sForm, bool fDoTrace, int sSelectTraceMorphs ) : IAsyncResult

place an asynchronous request for tracing the word

GetAndClearNotification ( ) : string

gives a notification string, if there is any.

GetQueueSize ( ParserPriority priority ) : int
ParserConnection ( SIL.FieldWorks.FDO.FdoCache cache, IdleQueue idleQueue ) : System

Initializes a new instance of the ParserConnection class. This will attempt to connect to an existing parser or start a new one if necessary.

ParserUpdateHandlerForPolling ( object sender, ParserUpdateEventArgs args ) : void

ReloadGrammarAndLexicon ( ) : void
UpdateWordform ( IWfiWordform wordform, ParserPriority priority ) : void
UpdateWordforms ( IEnumerable wordforms, ParserPriority priority ) : void

Protected Methods

Method Description
DisposeManagedResources ( ) : void

Method Details

BeginTryAWord() public method

place an asynchronous request for tracing the word
public BeginTryAWord ( string sForm, bool fDoTrace ) : IAsyncResult
sForm string The word form to be parsed
fDoTrace bool whether a trace is to be run or not
return IAsyncResult

BeginTryAWord() public method

place an asynchronous request for tracing the word
public BeginTryAWord ( string sForm, bool fDoTrace, int sSelectTraceMorphs ) : IAsyncResult
sForm string The word form to be parsed
fDoTrace bool whether a trace is to be run or not
sSelectTraceMorphs int list of msa hvos to limit trace to
return IAsyncResult

DisposeManagedResources() protected method

protected DisposeManagedResources ( ) : void
return void

GetAndClearNotification() public method

gives a notification string, if there is any.
public GetAndClearNotification ( ) : string
return string

GetQueueSize() public method

public GetQueueSize ( ParserPriority priority ) : int
priority ParserPriority
return int

ParserConnection() public method

Initializes a new instance of the ParserConnection class. This will attempt to connect to an existing parser or start a new one if necessary.
public ParserConnection ( SIL.FieldWorks.FDO.FdoCache cache, IdleQueue idleQueue ) : System
cache SIL.FieldWorks.FDO.FdoCache
idleQueue IdleQueue
return System

ParserUpdateHandlerForPolling() public method

public ParserUpdateHandlerForPolling ( object sender, ParserUpdateEventArgs args ) : void
sender object The sender.
args SIL.FieldWorks.WordWorks.Parser.ParserUpdateEventArgs The instance containing the event data.
return void

ReloadGrammarAndLexicon() public method

public ReloadGrammarAndLexicon ( ) : void
return void

UpdateWordform() public method

public UpdateWordform ( IWfiWordform wordform, ParserPriority priority ) : void
wordform IWfiWordform
priority ParserPriority
return void

UpdateWordforms() public method

public UpdateWordforms ( IEnumerable wordforms, ParserPriority priority ) : void
wordforms IEnumerable
priority ParserPriority
return void