Base class for parsers of legacy configuration cards.
More...
|
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...
|
|
Base class for parsers of legacy configuration cards.
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
-
start | the zero-based index of the first byte of the accessor |
length | the length of the accessor |
format | the format of the accessor |
encoding | the 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
-
formatRegex | a regex that can extract the card and the default format |
configuration | the configuration card |
defaultFormat | a variable where the default format will be stored |
- Returns
- a new Lexer
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 |
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 |
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 |
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Sort/Legacy/Parser/AbstractParser.cs