C# 클래스 SIL.FieldWorks.LexText.Controls.ParserConnection

Handles acquiring a parser and safely subscribing to and receiving events from it.
상속: SIL.Utils.FwDisposableBase, IAsyncResult
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

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