C# Класс SIL.FieldWorks.LexText.Controls.ParserConnection

Handles acquiring a parser and safely subscribing to and receiving events from it.
Наследование: SIL.Utils.FwDisposableBase, IAsyncResult
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
DisposeManagedResources ( ) : void

Описание методов

BeginTryAWord() публичный Метод

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
Результат IAsyncResult

BeginTryAWord() публичный Метод

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
Результат IAsyncResult

DisposeManagedResources() защищенный Метод

protected DisposeManagedResources ( ) : void
Результат void

GetAndClearNotification() публичный Метод

gives a notification string, if there is any.
public GetAndClearNotification ( ) : string
Результат string

GetQueueSize() публичный Метод

public GetQueueSize ( ParserPriority priority ) : int
priority ParserPriority
Результат int

ParserConnection() публичный Метод

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
Результат System

ParserUpdateHandlerForPolling() публичный Метод

public ParserUpdateHandlerForPolling ( object sender, ParserUpdateEventArgs args ) : void
sender object The sender.
args SIL.FieldWorks.WordWorks.Parser.ParserUpdateEventArgs The instance containing the event data.
Результат void

ReloadGrammarAndLexicon() публичный Метод

public ReloadGrammarAndLexicon ( ) : void
Результат void

UpdateWordform() публичный Метод

public UpdateWordform ( IWfiWordform wordform, ParserPriority priority ) : void
wordform IWfiWordform
priority ParserPriority
Результат void

UpdateWordforms() публичный Метод

public UpdateWordforms ( IEnumerable wordforms, ParserPriority priority ) : void
wordforms IEnumerable
priority ParserPriority
Результат void