IDataContextProvider Interface |
Namespace: Demo3D.PLC.Comms
public interface IDataContextProvider
The IDataContextProvider type exposes the following members.
| Name | Description | |
|---|---|---|
| GetContext |
Returns data context of a given type.
|
| Name | Description | |
|---|---|---|
| GetContextT |
Returns data context of a given type.
(Defined by DataContextProvider.) |
One instance of IDataContextProvider should be created and used per conversion per data stream.
DataConverter is used to convert data types. The IDataContextProvider should provide information about the conversion. For example, assigning a boolean into a memory buffer requires knowing which bit in the buffer should be read/written. That information is a property of the variable (the memory buffer) and not the data value (the boolean). A context provider should be able to supply that information.