.NET Based OPC UA Client/Server SDK  3.0.10.493
UnifiedAutomation.UaBase.ModelMapper Class Reference

Provides access to a UA information model using classes with special attributes defined. More...

Inherits UnifiedAutomation.UaBase.IModelMapper.

Static Public Member Functions

static DataValue GetValue (IMapperContext context, ModelMapping mapping)
 Gets the value associated with the mapping. More...
 
static List< DataValueGet (IMapperContext context, object instance, IList< ModelMapping > mappings)
 Get values from the specified instance. More...
 
static bool SetValue (IMapperContext context, ModelMapping mapping, DataValue value)
 Sets the value associated with the mapping. More...
 
static void Set (IMapperContext context, object instance, IList< ModelMapping > mappings, IList< DataValue > values)
 Updates the specified instance. More...
 
static ModelHandle GetModelHandle (StringTable namespaceUris, object instance)
 Gets the metadata handle. More...
 

Additional Inherited Members

Detailed Description

Provides access to a UA information model using classes with special attributes defined.

Member Function Documentation

static List<DataValue> UnifiedAutomation.UaBase.ModelMapper.Get ( IMapperContext  context,
object  instance,
IList< ModelMapping mappings 
)
inlinestatic

Get values from the specified instance.

Parameters
contextThe request context.
instanceThe instance.
mappingsThe mappings.
Returns
static ModelHandle UnifiedAutomation.UaBase.ModelMapper.GetModelHandle ( StringTable  namespaceUris,
object  instance 
)
inlinestatic

Gets the metadata handle.

Parameters
namespaceUris
instanceThe instance.
Returns

Implements UnifiedAutomation.UaBase.IModelMapper.

static DataValue UnifiedAutomation.UaBase.ModelMapper.GetValue ( IMapperContext  context,
ModelMapping  mapping 
)
inlinestatic

Gets the value associated with the mapping.

Parameters
contextThe request context.
mappingThe mapping.
Returns
The value. BadNoData if it does not exist.

Implements UnifiedAutomation.UaBase.IModelMapper.

static void UnifiedAutomation.UaBase.ModelMapper.Set ( IMapperContext  context,
object  instance,
IList< ModelMapping mappings,
IList< DataValue values 
)
inlinestatic

Updates the specified instance.

Parameters
contextThe request context.
instanceThe instance.
mappingsThe mappings.
valuesThe values to use when updating.
static bool UnifiedAutomation.UaBase.ModelMapper.SetValue ( IMapperContext  context,
ModelMapping  mapping,
DataValue  value 
)
inlinestatic

Sets the value associated with the mapping.

Parameters
contextThe request context.
mappingThe mapping.
valueThe value.
Returns
True if the mapping was understood. False otherwise.

Implements UnifiedAutomation.UaBase.IModelMapper.


The documentation for this class was generated from the following file: