C# Class SIL.Cog.CommandLine.VerbBase

Mostra file Open project: sillsdev/cog

Protected Properties

Property Type Description
_meaning SIL.Cog.Domain.Meaning
_project SIL.Cog.Domain.CogProject
_segmentPool SIL.Cog.Domain.SegmentPool
_spanFactory SpanFactory
_variety1 SIL.Cog.Domain.Variety
_variety2 SIL.Cog.Domain.Variety

Private Properties

Property Type Description

Public Methods

Method Description
CountedNoun ( int count, string singular ) : string
CountedNoun ( int count, string singular, string plural ) : string
DoWorkWithErrorChecking ( TextReader inputReader, TextWriter outputWriter, TextWriter errorWriter ) : ReturnCodes
GetProjectFromFilename ( SpanFactory spanFactory, SIL.Cog.Domain.SegmentPool segmentPool, string projectFilename ) : CogProject
GetProjectFromResource ( SpanFactory spanFactory, SIL.Cog.Domain.SegmentPool segmentPool ) : CogProject
GetProjectFromXmlString ( SpanFactory spanFactory, SIL.Cog.Domain.SegmentPool segmentPool, string xmlString ) : CogProject
GetVerbName ( ) : string
ReadLines ( TextReader input ) : IEnumerable
RunAsPipe ( ) : ReturnCodes
RunAsPipe ( TextWriter errorWriter ) : ReturnCodes
SetUpProject ( ) : void

Protected Methods

Method Description
AllPossiblePairs ( IEnumerable words ) : string>>.IEnumerable
DoWork ( TextReader inputReader, TextWriter outputWriter, TextWriter errorWriter ) : ReturnCodes
FindConfigFilename ( ) : string
OpenInput ( ) : StreamReader
OpenInput ( Encoding encoding ) : StreamReader
OpenInput ( string filename ) : StreamReader
OpenInput ( string filename, Encoding encoding ) : StreamReader
OpenOutput ( ) : StreamWriter
OpenOutput ( Encoding encoding ) : StreamWriter
OpenOutput ( string filename ) : StreamWriter
OpenOutput ( string filename, Encoding encoding ) : StreamWriter
ParseWord ( string wordText, Meaning meaning ) : Word

Method Details

AllPossiblePairs() protected method

protected AllPossiblePairs ( IEnumerable words ) : string>>.IEnumerable
words IEnumerable
return string>>.IEnumerable

CountedNoun() public static method

public static CountedNoun ( int count, string singular ) : string
count int
singular string
return string

CountedNoun() public static method

public static CountedNoun ( int count, string singular, string plural ) : string
count int
singular string
plural string
return string

DoWork() protected method

protected DoWork ( TextReader inputReader, TextWriter outputWriter, TextWriter errorWriter ) : ReturnCodes
inputReader TextReader
outputWriter System.IO.TextWriter
errorWriter System.IO.TextWriter
return ReturnCodes

DoWorkWithErrorChecking() public method

public DoWorkWithErrorChecking ( TextReader inputReader, TextWriter outputWriter, TextWriter errorWriter ) : ReturnCodes
inputReader TextReader
outputWriter System.IO.TextWriter
errorWriter System.IO.TextWriter
return ReturnCodes

FindConfigFilename() protected method

protected FindConfigFilename ( ) : string
return string

GetProjectFromFilename() public static method

public static GetProjectFromFilename ( SpanFactory spanFactory, SIL.Cog.Domain.SegmentPool segmentPool, string projectFilename ) : CogProject
spanFactory SpanFactory
segmentPool SIL.Cog.Domain.SegmentPool
projectFilename string
return SIL.Cog.Domain.CogProject

GetProjectFromResource() public static method

public static GetProjectFromResource ( SpanFactory spanFactory, SIL.Cog.Domain.SegmentPool segmentPool ) : CogProject
spanFactory SpanFactory
segmentPool SIL.Cog.Domain.SegmentPool
return SIL.Cog.Domain.CogProject

GetProjectFromXmlString() public static method

public static GetProjectFromXmlString ( SpanFactory spanFactory, SIL.Cog.Domain.SegmentPool segmentPool, string xmlString ) : CogProject
spanFactory SpanFactory
segmentPool SIL.Cog.Domain.SegmentPool
xmlString string
return SIL.Cog.Domain.CogProject

GetVerbName() public method

public GetVerbName ( ) : string
return string

OpenInput() protected method

protected OpenInput ( ) : StreamReader
return System.IO.StreamReader

OpenInput() protected method

protected OpenInput ( Encoding encoding ) : StreamReader
encoding System.Text.Encoding
return System.IO.StreamReader

OpenInput() protected method

protected OpenInput ( string filename ) : StreamReader
filename string
return System.IO.StreamReader

OpenInput() protected method

protected OpenInput ( string filename, Encoding encoding ) : StreamReader
filename string
encoding System.Text.Encoding
return System.IO.StreamReader

OpenOutput() protected method

protected OpenOutput ( ) : StreamWriter
return System.IO.StreamWriter

OpenOutput() protected method

protected OpenOutput ( Encoding encoding ) : StreamWriter
encoding System.Text.Encoding
return System.IO.StreamWriter

OpenOutput() protected method

protected OpenOutput ( string filename ) : StreamWriter
filename string
return System.IO.StreamWriter

OpenOutput() protected method

protected OpenOutput ( string filename, Encoding encoding ) : StreamWriter
filename string
encoding System.Text.Encoding
return System.IO.StreamWriter

ParseWord() protected method

protected ParseWord ( string wordText, Meaning meaning ) : Word
wordText string
meaning SIL.Cog.Domain.Meaning
return Word

ReadLines() public static method

public static ReadLines ( TextReader input ) : IEnumerable
input TextReader
return IEnumerable

RunAsPipe() public method

public RunAsPipe ( ) : ReturnCodes
return ReturnCodes

RunAsPipe() public method

public RunAsPipe ( TextWriter errorWriter ) : ReturnCodes
errorWriter System.IO.TextWriter
return ReturnCodes

SetUpProject() public method

public SetUpProject ( ) : void
return void

Property Details

_meaning protected_oe property

protected Meaning,SIL.Cog.Domain _meaning
return SIL.Cog.Domain.Meaning

_project protected_oe property

protected CogProject,SIL.Cog.Domain _project
return SIL.Cog.Domain.CogProject

_segmentPool protected_oe property

protected SegmentPool,SIL.Cog.Domain _segmentPool
return SIL.Cog.Domain.SegmentPool

_spanFactory protected_oe property

protected SpanFactory _spanFactory
return SpanFactory

_variety1 protected_oe property

protected Variety,SIL.Cog.Domain _variety1
return SIL.Cog.Domain.Variety

_variety2 protected_oe property

protected Variety,SIL.Cog.Domain _variety2
return SIL.Cog.Domain.Variety