IEpcEncoder Interface

TegoOS

IEpcEncoder Interface
Interface for EPC encoders.

Namespace: Tego.Rfid.Tds
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)
Syntax
public interface IEpcEncoder : INotifyPropertyChanged, 
	INotifyDataErrorInfo
Public Interface IEpcEncoder
	Inherits INotifyPropertyChanged, INotifyDataErrorInfo
public interface class IEpcEncoder : INotifyPropertyChanged, 
	INotifyDataErrorInfo
type IEpcEncoder =  
    interface
        interface INotifyPropertyChanged
        interface INotifyDataErrorInfo
    end

The IEpcEncoder type exposes the following members.

Properties
  NameDescription
Public propertyHasErrors
Gets a value that indicates whether the entity has validation errors.
(Inherited from INotifyDataErrorInfo.)
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 methodGetErrors
Gets the validation errors for a specified property or for the entire entity.
(Inherited from INotifyDataErrorInfo.)
Public methodSetFromTagUriString
Set encoder fields from a Tag URI.
Public methodToIdUriString
Method to generate the EPC Identity URI, e.g. urn:epc:id:sgtin:0614141.812345.6789
Public methodToTagUriString
Method to generate the EPC Tag URI, e.g. urn:epc:tag:sgtin-96:3.0614141.812345.6789
Top
Events
  NameDescription
Public eventErrorsChanged
Occurs when the validation errors have changed for a property or for the entire entity.
(Inherited from INotifyDataErrorInfo.)
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from INotifyPropertyChanged.)
Top
Remarks
In addition, to implementing this interface, EPC encoders should also implement the following static fields: a string called SCHEME, e.g. "sgtin-96", a byte called HEADER e.g. 0x30 and a display name called NAME e.g. EpcStrings.Sgtin96 (referencing a property within a resource file). EPC fields should be implemented as properties annotated by an EpcFieldAttribute.
See Also