MultiCam Boards Documentation > MultiCam Documentation > MultiCam C Reference > Introduction > Managing MultiCam Parameters > Accessing a Collection Element

Accessing a Collection Element

Some MultiCam parameters exist as a collection. This applies to any parameter type.

Accessing a Collection Element by Identifier

In this case, the parameter reference is established with an integer identifier defined in the MultiCam McParams.h header file.

The first element of the collection is referred to with this identifier just like a non-collection parameter. The following elements are referred to with consecutive integer values starting from the identifier value.

Accessing a Collection Element by Name

In this case, the name allowing access to the collection element is the concatenation of the following items:

Example: accessing the elements of the collection parameter Cluster

Collection element

By-identifier access

By-name access

First element

MC_Cluster

Cluster

First element, alternative

MC_Cluster + 0

Cluster:0

Second element

MC_Cluster + 1

Cluster:1

Third element

MC_Cluster + 2

Cluster:2

See also By-Name vs. By-Identifier Access.