Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser Class Reference

Base class for parsers of legacy configuration cards. More...

Inheritance diagram for Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser:
Summer.Batch.Extra.Sort.Legacy.Parser.ComparerParser Summer.Batch.Extra.Sort.Legacy.Parser.FilterParser Summer.Batch.Extra.Sort.Legacy.Parser.FormatterParser Summer.Batch.Extra.Sort.Legacy.Parser.OutfilParser Summer.Batch.Extra.Sort.Legacy.Parser.SumParser

Protected Member Functions

Lexer GetLexer (Regex formatRegex, string configuration, out string defaultFormat)
 Creates a lexer from a regex and a configuration card. The regex is used to get the default format which is then written in defaultFormat . More...
 
object GetAccessor (int start, int length, string format, Encoding encoding)
 Creates an accessor depending on the format. More...
 

Protected Attributes

const string StringFormat = "CH"
 String format constant. More...
 
const string SubstringFormat = "SS"
 Substring format constant. More...
 
const string ZonedFormat = "ZD"
 Zoned format constant. More...
 
const string PackedFormat = "PD"
 Packed format constant. More...
 
const string SignedBinaryFormat = "FI"
 Signed binary format constant. More...
 
const string BinaryFormat = "BI"
 Unsigned binary format constant. More...
 
const string OpeningPar = "("
 Opening parenthese constant. More...
 
const string ClosingPar = ")"
 Closing parenthese constant More...
 

Detailed Description

Base class for parsers of legacy configuration cards.

Member Function Documentation

object Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.GetAccessor ( int  start,
int  length,
string  format,
Encoding  encoding 
)
protected

Creates an accessor depending on the format.

Parameters
startthe zero-based index of the first byte of the accessor
lengththe length of the accessor
formatthe format of the accessor
encodingthe encoding of the accessed records
Returns
a new accessor with the correct parameters
Lexer Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.GetLexer ( Regex  formatRegex,
string  configuration,
out string  defaultFormat 
)
protected

Creates a lexer from a regex and a configuration card. The regex is used to get the default format which is then written in defaultFormat .

Parameters
formatRegexa regex that can extract the card and the default format
configurationthe configuration card
defaultFormata variable where the default format will be stored
Returns
a new Lexer

Member Data Documentation

const string Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.BinaryFormat = "BI"
protected

Unsigned binary format constant.

const string Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.ClosingPar = ")"
protected

Closing parenthese constant

const string Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.OpeningPar = "("
protected

Opening parenthese constant.

const string Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.PackedFormat = "PD"
protected

Packed format constant.

const string Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.SignedBinaryFormat = "FI"
protected

Signed binary format constant.

const string Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.StringFormat = "CH"
protected

String format constant.

const string Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.SubstringFormat = "SS"
protected

Substring format constant.

const string Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser.ZonedFormat = "ZD"
protected

Zoned format constant.


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Sort/Legacy/Parser/AbstractParser.cs