Click or drag to resize

AttributeDatabaseBase Class

A database of AttributeValue, with methods to enumerate, find and create attribute values. For databases shared across a process boundary, the manager will also keep the databases in sync.
Inheritance Hierarchy

Namespace:  Demo3D.PLC.Comms.AttrDb
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public abstract class AttributeDatabaseBase : IAttributeDatabase

The AttributeDatabaseBase type exposes the following members.

Constructors
  NameDescription
Protected methodAttributeDatabaseBase
Initializes a new instance of the AttributeDatabaseBase class
Top
Properties
  NameDescription
Public propertyNumAttributes
The number of attributes.
Top
Methods
  NameDescription
Public methodCreateValue
Create an attribute value of the specified dimensions.
Public methodFindAddOrUpdateAttributeValue
Find, add or update an attribute value.

If an attribute value with the specified id does not exist, then the function 'create' is called to create a new attribute value. If the 'create' function is null then no new attribute value is added.

If an attribute value with the specified id already exists, then the function 'update' (if not null) is called to update the attribute value.

Public methodGetAttributeValues
Get all the attribute values.
Top
Extension Methods
  NameDescription
Public Extension MethodFindAttributeValue
Find an attribute value by id.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindByteArrayAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindByteAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindDIntAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindDWordAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindLIntAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindLRealAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindLWordAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindOrAddAttributeValue(AttributeValue, Boolean)Overloaded.
Find or add an attribute value.

If an attribute value with the specified id does not exist, then the specified attribute is added. If an attribute value with the specified id already exists, then the original attribute is returned.

(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindOrAddAttributeValue(UInt32, DataDimensions, Boolean)Overloaded.
Find or add an attribute value.

If an attribute value with the specified id already exists, then it's returned. If an attribute value with the specified id does not exist, then a new attribute value is created.

(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindRealAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindShortStringAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindWordAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteArrayAttribute(UInt32, Int32)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteArrayAttribute(UInt32, Int32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteArrayAttribute(UInt32, Int32, BufferSegment)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteAttribute(UInt32, Byte)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetDIntAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetDIntAttribute(UInt32, Int32)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetDWordAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetDWordAttribute(UInt32, UInt32)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLIntAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLIntAttribute(UInt32, Int64)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLRealAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLRealAttribute(UInt32, Double)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLWordAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLWordAttribute(UInt32, UInt64)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetRealAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetRealAttribute(UInt32, Single)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetShortStringAttribute(UInt32, Int32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetShortStringAttribute(UInt32, Int32, String)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetWordAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetWordAttribute(UInt32, UInt16)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Top
See Also