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

Parser for sort configuration cards that creates an IComparer<T>. More...

Inheritance diagram for Summer.Batch.Extra.Sort.Legacy.Parser.ComparerParser:
Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser

Public Member Functions

 ComparerParser ()
 Default constructor. More...
 
IComparer< byte[]> GetComparer (string configuration)
 Constructs a new IComparer<T> from a sort configuration card. More...
 

Properties

Encoding Encoding [get, set]
 The encoding of the records. Default is System.Text.Encoding.Default. More...
 
Encoding SortEncoding [get, set]
 The encoding to use when sorting, if different from Encoding. Default is null. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser
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 inherited from Summer.Batch.Extra.Sort.Legacy.Parser.AbstractParser
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

Parser for sort configuration cards that creates an IComparer<T>.

Constructor & Destructor Documentation

Summer.Batch.Extra.Sort.Legacy.Parser.ComparerParser.ComparerParser ( )

Default constructor.

Member Function Documentation

IComparer<byte[]> Summer.Batch.Extra.Sort.Legacy.Parser.ComparerParser.GetComparer ( string  configuration)

Constructs a new IComparer<T> from a sort configuration card.

Parameters
configurationthe sort card
Returns
the corresponding IComparer<T>

Property Documentation

Encoding Summer.Batch.Extra.Sort.Legacy.Parser.ComparerParser.Encoding
getset

The encoding of the records. Default is System.Text.Encoding.Default.

Encoding Summer.Batch.Extra.Sort.Legacy.Parser.ComparerParser.SortEncoding
getset

The encoding to use when sorting, if different from Encoding. Default is null.


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