C# Class Sfm2Xml.ClsLog

This 'log' class servers as a common location for capturing error and warning messages that are captured during the conversion process. They are accumulated and then added to the output xml file at the end.
ファイルを表示 Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
AddError ( string text ) : void
AddError ( string file, int line, string text ) : void
AddFatalError ( string text ) : void
AddFatalError ( string file, int line, string text ) : void
AddOutOfOrderCaution ( string EntryKey, string marker, int line ) : void
AddSFMError ( string file, int line, string sfm, string text ) : void
AddSFMError ( string sfm, string text ) : void
AddSFMNoData ( string sfm ) : void
AddSFMNotDefined ( string sfm ) : void
AddSFMWarning ( string file, int line, string sfm, string text ) : void
AddSFMWarning ( string sfm, string text ) : void
AddSFMWithData ( string sfm ) : void
AddUniqueHighPriorityError ( string key, string msg ) : void
AddWarning ( string text ) : void
AddWarning ( string file, int line, string text ) : void
ClsLog ( ) : System
FlushTo ( System xmlOutput ) : void

Put the contents of the error and warning information to the passed in xml text writer.

Reset ( ) : void

Private Methods

Method Description
FoundSFMError ( string sfm ) : void
FoundSFMNotDefined ( string sfm ) : void
FoundSFMWarning ( string sfm ) : void
FoundSFMWithData ( string sfm ) : void
FoundSFMWithoutData ( string sfm ) : void
MakeSafeXML ( string text ) : string
OutputDuplicateSfmWarnErrElement ( System xmlOutput ) : void
OutputErrorElement ( System xmlOutput ) : void
OutputOOOInfo ( System xmlOutput ) : void
OutputSfmInfo ( System xmlOutput ) : void
OutputWarningElement ( System xmlOutput ) : void

Method Details

AddError() public method

public AddError ( string text ) : void
text string
return void

AddError() public method

public AddError ( string file, int line, string text ) : void
file string
line int
text string
return void

AddFatalError() public method

public AddFatalError ( string text ) : void
text string
return void

AddFatalError() public method

public AddFatalError ( string file, int line, string text ) : void
file string
line int
text string
return void

AddOutOfOrderCaution() public method

public AddOutOfOrderCaution ( string EntryKey, string marker, int line ) : void
EntryKey string
marker string
line int
return void

AddSFMError() public method

public AddSFMError ( string file, int line, string sfm, string text ) : void
file string
line int
sfm string
text string
return void

AddSFMError() public method

public AddSFMError ( string sfm, string text ) : void
sfm string
text string
return void

AddSFMNoData() public method

public AddSFMNoData ( string sfm ) : void
sfm string
return void

AddSFMNotDefined() public method

public AddSFMNotDefined ( string sfm ) : void
sfm string
return void

AddSFMWarning() public method

public AddSFMWarning ( string file, int line, string sfm, string text ) : void
file string
line int
sfm string
text string
return void

AddSFMWarning() public method

public AddSFMWarning ( string sfm, string text ) : void
sfm string
text string
return void

AddSFMWithData() public method

public AddSFMWithData ( string sfm ) : void
sfm string
return void

AddUniqueHighPriorityError() public method

public AddUniqueHighPriorityError ( string key, string msg ) : void
key string
msg string
return void

AddWarning() public method

public AddWarning ( string text ) : void
text string
return void

AddWarning() public method

public AddWarning ( string file, int line, string text ) : void
file string
line int
text string
return void

ClsLog() public method

public ClsLog ( ) : System
return System

FlushTo() public method

Put the contents of the error and warning information to the passed in xml text writer.
public FlushTo ( System xmlOutput ) : void
xmlOutput System
return void

Reset() public method

public Reset ( ) : void
return void