RUSProtocolAPI  5.2.02.0
Custom.Fiscal.RUSProtocolAPI.Utils.GS1Parser Class Reference

Classes

class  AII
 Information Class for an Application Identifier (AI) More...
 

Public Types

enum  DataType
 

Static Public Member Functions

static void Add (string AI, string Description, int LengthOfAI, DataType DataDescription, int LengthOfData, bool FNC1)
 Add an Application Identifier (AI) More...
 
static Dictionary< AII, string > Parse (string data, bool throwException=false)
 Parse the ean128 code More...
 
static string GetCodeUntilGroupSeparator (string codeSubstring, string data, int index, AII ai, ref int lengthToRead)
 

Properties

static bool HasCheckSum [get, set]
 
static char GroupSeparator [get, set]
 
static string EAN128StartCode [get, set]
 

Member Function Documentation

◆ Add()

static void Custom.Fiscal.RUSProtocolAPI.Utils.GS1Parser.Add ( string  AI,
string  Description,
int  LengthOfAI,
DataType  DataDescription,
int  LengthOfData,
bool  FNC1 
)
inlinestatic

Add an Application Identifier (AI)

Parameters
AINumber of the AI
Description
LengthOfAI
DataDescriptionThe type of the content
LengthOfDataThe max lenght of the content
FNC1Support a group seperator

◆ Parse()

static Dictionary<AII, string> Custom.Fiscal.RUSProtocolAPI.Utils.GS1Parser.Parse ( string  data,
bool  throwException = false 
)
inlinestatic

Parse the ean128 code

Parameters
dataThe raw scanner data
throwExceptionIf an exception will be thrown if an AI cannot be found
Returns
The different parts of the ean128 code