A Sandcastle Documented Class Library
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
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
Name | Description | |
---|---|---|
EpcEncoder | Creates an EpcEncoder and sets its FieldTable for use by specific EPC encoders. |
Properties
Name | Description | |
---|---|---|
FieldTable | Gets a table mapping EPC field PropertyInfo to the EpcFieldAttribute which describes the field. | |
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). |
Methods
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. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetFieldEncoder | Gets an instance of a field encoder of a specific type. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetFromTagUriString | Set encoder fields from a Tag URI. | |
SetPropertyFromTagUriField | 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. | |
ToIdUriString |
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.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ToTagUriString | Method to generate the EPC Tag URI, e.g. urn:epc:tag:sgtin-96:3.0614141.812345.6789 |
Fields
Name | Description | |
---|---|---|
GS1 | Regular expression for the GS1 alphabet | |
NUMERIC | Regular expression for one or more numeric digits. |
See Also