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
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
DisposeManagedResources ( ) : void

Method Details

BeginTryAWord() public méthode

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
Résultat IAsyncResult

BeginTryAWord() public méthode

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
Résultat IAsyncResult

DisposeManagedResources() protected méthode

protected DisposeManagedResources ( ) : void
Résultat void

GetAndClearNotification() public méthode

gives a notification string, if there is any.
public GetAndClearNotification ( ) : string
Résultat string

GetQueueSize() public méthode

public GetQueueSize ( ParserPriority priority ) : int
priority ParserPriority
Résultat int

ParserConnection() public méthode

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
Résultat System

ParserUpdateHandlerForPolling() public méthode

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

ReloadGrammarAndLexicon() public méthode

public ReloadGrammarAndLexicon ( ) : void
Résultat void

UpdateWordform() public méthode

public UpdateWordform ( IWfiWordform wordform, ParserPriority priority ) : void
wordform IWfiWordform
priority ParserPriority
Résultat void

UpdateWordforms() public méthode

public UpdateWordforms ( IEnumerable wordforms, ParserPriority priority ) : void
wordforms IEnumerable
priority ParserPriority
Résultat void