DeviceChannelList Class

Namespace: id3.Devices

Definition

Manages a collection of device channel configurations, encapsulating a list of DeviceChannel objects.
This class facilitates operations on groups of channels, such as enumeration, searching, and manipulation, making it easier to handle complex device configurations that involve multiple channels.
It extends generic list functionalities specifically for DeviceChannel objects, providing a tailored interface for channel management.
class DeviceChannelList
class DeviceChannelList implements Finalizable
public partial class DeviceChannelList
public class DeviceChannelList implements AutoCloseable, Serializable
typedef struct id3DevicesDeviceChannelList *ID3_DEVICES_DEVICE_CHANNEL_LIST;

Usage

deviceChannelListInstance = DeviceChannelList()
# ...

Explicit destruction

# ...
del deviceChannelListInstance
final deviceChannelListInstance = sdk.DeviceChannelList();
// ...

Explicit destruction

// ...
deviceChannelListInstance.dispose()
using (var deviceChannelListInstance = new DeviceChannelList())
{
   // ...
}

Explicit destruction

var deviceChannelListInstance = new DeviceChannelList()
// ...
deviceChannelListInstance.Dispose()
try (DeviceChannelList deviceChannelListInstance = new DeviceChannelList()) {
// ...
}

Explicit destruction

DeviceChannelList deviceChannelListInstance = new DeviceChannelList();
// ...
deviceChannelListInstance.close();
ID3_DEVICES_DEVICE_CHANNEL_LIST hDeviceChannelList{};
int err = id3DevicesDeviceChannelList_Initialize(&hDeviceChannelList);
if (err == ID3_SUCCESS) {
    // ...
    id3DevicesDeviceChannelList_Dispose(&hDeviceChannelList);
}

Properties

Name

Type

Description

count

int

Gets the number of elements contained in the list

operator [int index]

DeviceChannel

Gets or sets the element at the specified index in the list.

Iteration

This class supports iteration in Dart, C#, Java and Python.

Methods

Name

Description

add

Adds an item to the DeviceChannelList object.

clear

Clears the DeviceChannelList object.

get

Gets an item of the DeviceChannelList object.

getCount

Gets the number of elements in the DeviceChannelList object.

removeAt

Removes an element of the DeviceChannelList object.

resize

DeviceChannelList object.

set

Sets an item of the DeviceChannelList object.