Table of Contents

Class IsoIec15434Format06BarCodeDefinition

Namespace
Acuit.Pinpoint.Common.BarCodes
Assembly
Acuit.Pinpoint.Common.dll

A ISO/IEC-15434 format 06 bar code definition.

public class IsoIec15434Format06BarCodeDefinition : BarCodeDefinition
Inheritance
IsoIec15434Format06BarCodeDefinition
Inherited Members

Examples

To encode these data items:

Data Identifier Value
P ABCD
S 1234
1P WXYZ

The bar code would be:

[)>␞06␝PABCD␝S1234␝1PWXYZ␞␄

Remarks

ISO/IEC-15434 format 06 bar codes are formatted like this:

[)>␞06␝{DI1}{V1}␝{DI2}{V2}␞␄

Where:

  • ␝ = ASCII GS control character (hex 1D)
  • ␞ = ASCII RS control character (hex 1E)
  • ␄ = ASCII EOT control character (hex 04)
  • {DI1} = the data identifier for the first data item (e.g., S for serial number, P for part number, 1P for vendor part number)
  • {V1} = the value for the first data item
  • {DI2} = the data identifier for the second data item
  • {V2} = the value for the second data item

Note that this example includes two data items, but any number could be included.

Constructors

IsoIec15434Format06BarCodeDefinition(string)

Initializes a new instance of the IsoIec15434Format06BarCodeDefinition class.

public IsoIec15434Format06BarCodeDefinition(string format)

Parameters

format string

The format string, which should be something like: "P=model;S=serial"

Remarks

This will validate that all number identifiers match the ones in ValidIds.

Note that for the bar code to match, all data items defined by the format string must exist in the bar code.

Exceptions

ArgumentNullException

format is null.

FormatException

format is not valid.

IsoIec15434Format06BarCodeDefinition(string, IEnumerable<string>)

Initializes a new instance of the IsoIec15434Format06BarCodeDefinition class.

public IsoIec15434Format06BarCodeDefinition(string format, IEnumerable<string> validNumberIds)

Parameters

format string

The format string, which should be something like: "P=model;S=serial"

validNumberIds IEnumerable<string>

An optional list of identifiers that will be used to validate the number identifiers in the bar code format. If this is null, the number identifiers will not be validated.

Remarks

Note that for the bar code to match, all data items defined by the format string must exist in the bar code.

Exceptions

ArgumentNullException

format is null.

FormatException

format is not valid.

Methods

GetNumbersIfMatched(string)

Attempts to match the bar code to this bar code definition.

public override BarCodeMatch GetNumbersIfMatched(string barCode)

Parameters

barCode string

The bar code to attempt to match to this definition.

Returns

BarCodeMatch

If the bar code matches this definition, a BarCodeMatch instance containing the numbers found in the bar code; otherwise, null.

Exceptions

ArgumentNullException

barCode is null.