.NET Based OPC UA Client/Server SDK
2.5.3.389
|
Creates encodeable objects based on the type id. More...
Public Member Functions | |
EncodeableFactory () | |
Creates a factory initialized with the types in the core library. More... | |
EncodeableFactory (bool shared) | |
Creates a factory which is marked as shared and initialized with the types in the core library. More... | |
EncodeableFactory (EncodeableFactory factory) | |
Creates a factory by copying the table from another factory. More... | |
void | AddEncodeableType (System.Type systemType) |
Adds an extension type to the factory. More... | |
void | AddEncodeableType (ExpandedNodeId encodingId, System.Type systemType) |
Associates an encodeable type with an encoding id. More... | |
void | AddGenericDataTypeMapping (GenericStructureDataType genericType) |
Adds a mapping between a generic structure definition for a data type/encoding id. More... | |
bool | RemoveGenericDataTypeMapping (ExpandedNodeId dataTypeId) |
Removes a mapping between a generic structure definition for a data type/encoding id. More... | |
void | AddEncodeableTypes (Assembly assembly) |
Adds all encodable types exported from an assembly to the factory. More... | |
System.Type | GetSystemType (ExpandedNodeId typeId) |
Returns the system type for the specified type id. More... | |
GenericStructureDataType | GetGenericType (ExpandedNodeId typeId) |
Returns the generic type for the specified type id. More... | |
Static Public Member Functions | |
static XmlQualifiedName | GetXmlName (System.Type systemType) |
Returns the xml qualified name for the specified system type id. More... | |
Properties | |
static EncodeableFactory | GlobalFactory [get] |
The default factory for the process. More... | |
object | SyncRoot [get] |
Returns the object used to synchronize access to the factory. More... | |
int | InstanceId [get] |
Returns a unique identifier for the table instance. Used to debug problems with shared tables. More... | |
Creates encodeable objects based on the type id.
This factory is used to store and retrieve underlying OPC UA system types.
You can manually add types. You can also import all types from a specified assembly. Once the types exist within the factory, these types can be then easily queried.
|
inline |
Creates a factory initialized with the types in the core library.
|
inline |
Creates a factory which is marked as shared and initialized with the types in the core library.
|
inline |
Creates a factory by copying the table from another factory.
|
inline |
Adds an extension type to the factory.
Adds an extension type to the factory.
systemType | The underlying system type to add to the factory |
|
inline |
Associates an encodeable type with an encoding id.
encodingId | A NodeId for a Data Type Encoding node |
systemType | The system type to use for the specified encoding. |
|
inline |
Adds all encodable types exported from an assembly to the factory.
Adds all encodable types exported from an assembly to the factory.
This method uses reflection on the specified assembly to export all of the types the assembly exposes, and automatically adds all types that implement the IEncodeable interface, to the factory.
assembly | The assembly containing the types to add to the factory |
|
inline |
Adds a mapping between a generic structure definition for a data type/encoding id.
genericType | The generic structure definition. The node ids mapped to the definition are properties of this object. |
|
inline |
Returns the generic type for the specified type id.
Returns the generic type for the specified type id.
typeId | The type id to return the system-type of |
|
inline |
Returns the system type for the specified type id.
Returns the system type for the specified type id.
typeId | The type id to return the system-type of |
|
inlinestatic |
Returns the xml qualified name for the specified system type id.
Returns the xml qualified name for the specified system type id.
systemType | The underlying type to query and return the Xml qualified name of |
|
inline |
Removes a mapping between a generic structure definition for a data type/encoding id.
dataTypeId | The data type or encoding id to remove from the mapping. |
|
staticget |
The default factory for the process.
The default factory for the process.
|
get |
Returns a unique identifier for the table instance. Used to debug problems with shared tables.
|
get |
Returns the object used to synchronize access to the factory.
Returns the object used to synchronize access to the factory.