A Sandcastle Documented Class Library
![]() | IEpcEncoder Interface |
Interface for EPC encoders.
Namespace: Tego.Rfid.Tds
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)

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.

Name | Description | |
---|---|---|
![]() | HasErrors | Gets a value that indicates whether the entity has validation errors. (Inherited from INotifyDataErrorInfo.) |
![]() | Header | Gets the header byte used by this encoder. |
![]() | Scheme | Gets the name of the encoding scheme implemented by this encoder. |
![]() | WordCount | Gets the number of words this encoder produces when encoding (VARIABLE if not fixed). |

Name | Description | |
---|---|---|
![]() | Decode | Decodes an EPC hexadecimal string and sets the fields of the encoder accordingly. |
![]() | DecodeField | Decodes a field, reading its value from a word array and setting the corresponding property. |
![]() | Encode | Encode EPC fields into corresponding words. |
![]() | EncodeField | Encodes a field returning the number of bits used. |
![]() | GetErrors | Gets the validation errors for a specified property or for the entire entity. (Inherited from INotifyDataErrorInfo.) |
![]() | SetFromTagUriString | Set encoder fields from a Tag URI. |
![]() | ToIdUriString | Method to generate the EPC Identity URI, e.g. urn:epc:id:sgtin:0614141.812345.6789 |
![]() | ToTagUriString | Method to generate the EPC Tag URI, e.g. urn:epc:tag:sgtin-96:3.0614141.812345.6789 |

Name | Description | |
---|---|---|
![]() | ErrorsChanged | Occurs when the validation errors have changed for a property or for the entire entity. (Inherited from INotifyDataErrorInfo.) |
![]() | PropertyChanged | Occurs when a property value changes. (Inherited from INotifyPropertyChanged.) |

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.
