EpcEncoder Class

TegoOS

EpcEncoder Class
Base class for EPC encoders
Inheritance Hierarchy
SystemObject  ErrorsContainer
    Model
      Tego.Rfid.TdsEpcEncoder
        Tego.Rfid.TdsAdiVar
        Tego.Rfid.TdsGid96
        Tego.Rfid.TdsHexVar
        Tego.Rfid.TdsPartitionedEpcEncoder
        Tego.Rfid.TdsUsdod96

Namespace: Tego.Rfid.Tds
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)
Syntax
public abstract class EpcEncoder : Model, 
	IEpcEncoder, INotifyPropertyChanged, INotifyDataErrorInfo
Public MustInherit Class EpcEncoder
	Inherits Model
	Implements IEpcEncoder, INotifyPropertyChanged, INotifyDataErrorInfo
public ref class EpcEncoder abstract : public Model, 
	IEpcEncoder, INotifyPropertyChanged, INotifyDataErrorInfo
[<AbstractClassAttribute>]
type EpcEncoder =  
    class
        inherit Model
        interface IEpcEncoder
        interface INotifyPropertyChanged
        interface INotifyDataErrorInfo
    end

The EpcEncoder type exposes the following members.

Constructors
  NameDescription
Protected methodEpcEncoder
Creates an EpcEncoder and sets its FieldTable for use by specific EPC encoders.
Top
Properties
  NameDescription
Public propertyFieldTable
Gets a table mapping EPC field PropertyInfo to the EpcFieldAttribute which describes the field.
Public propertyHeader
Gets the header byte used by this encoder.
Public propertyScheme
Gets the name of the encoding scheme implemented by this encoder.
Public propertyWordCount
Gets the number of words this encoder produces when encoding (VARIABLE if not fixed).
Top
Methods
  NameDescription
Public methodDecode
Decodes an EPC hexadecimal string and sets the fields of the encoder accordingly.
Public methodDecodeField
Decodes a field, reading its value from a word array and setting the corresponding property.
Public methodEncode
Encode EPC fields into corresponding words.
Public methodEncodeField
Encodes a field returning the number of bits used.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodStatic memberGetFieldEncoder
Gets an instance of a field encoder of a specific type.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetFromTagUriString
Set encoder fields from a Tag URI.
Protected methodSetPropertyFromTagUriField
Set an encoder field from a field within a Tag URI. Override this if a field needs to be decoded in an an unusual manner.
Public methodToIdUriString
Virtual method to generate the EPC Identity URI, e.g. urn:epc:id:sgtin:0614141.812345.6789 Override this method in the encoder if the URI is not formed from the properties in order.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToTagUriString
Method to generate the EPC Tag URI, e.g. urn:epc:tag:sgtin-96:3.0614141.812345.6789
Top
Fields
  NameDescription
Protected fieldStatic memberGS1
Regular expression for the GS1 alphabet
Protected fieldStatic memberNUMERIC
Regular expression for one or more numeric digits.
Top
See Also