Impact Acquire SDK .NET
|
A class to locate components within the driver. More...
Public Member Functions | |
bool | bindComponent (Component access, String name) |
Binds an access object to an internal driver object. | |
bool | bindComponent (Component access, String name, int maxSearchDepth) |
Binds an access object to an internal driver object. | |
int | bindSearchBase (int baselist) |
Assign a new search base to the locator. | |
int | bindSearchBase (int baselist, String pathToSearchBase) |
Assign a new search base to the locator. | |
ComponentLocator () | |
Constructs a new unbound locator. | |
ComponentLocator (int baselist) | |
Constructs a new locator and searches the search base list. | |
ComponentLocator (int baselist, String pathToSearchBase) | |
Constructs a new locator and searches the search base list. | |
int | findComponent (String name) |
Tries to locate a certain component in a hierarchy of components. | |
int | findComponent (String name, int maxSearchDepth) |
Tries to locate a certain component in a hierarchy of components. | |
Properties | |
uint | changedCounter [get] |
Returns the current changed counter for the component referenced by this object. | |
uint | changedCounterAttr [get] |
Returns the current attribute changed counter for the component referenced by this object. | |
String | displayName [get] |
Returns the display name of the component referenced by this object. | |
int | hObj [get] |
Returns a unique identifier for the component referenced by this object. | |
String | name [get] |
Returns the name of the component referenced by this object. | |
int | searchbase_id [get] |
Returns the unique identifier of the base list from where to start searching for a component. | |
A class to locate components within the driver.
Every driver will offer a set of properties, methods and component lists. mv.impact.acquire.Property objects contain data such as the current gain in dB, the state of a digital input, etc.. mv.impact.acquire.Method objects can be executed like a normal function and mv.impact.acquire.ComponentList objects are used to group certain objects together to form a logical unit.
When it's necessary to locate one or more of these objects without knowing exactly where to look for them this locator class can be used to look for the component.
|
inline |
Constructs a new unbound locator.
|
inline |
Constructs a new locator and searches the search base list.
[in] | baselist | A unique identifier to the base list from where to start to search for the search base. |
|
inline |
Constructs a new locator and searches the search base list.
[in] | baselist | A unique identifier to the base list from where to start to search for the search base. |
[in] | pathToSearchBase | The name or path ('/' separated) to the search base. |
|
inlineinherited |
Binds an access object to an internal driver object.
[in] | access | The access object to bind to the driver object. |
[in] | name | The name of the driver object to locate. |
|
inlineinherited |
Binds an access object to an internal driver object.
[in,out] | access | The access object to bind to the driver object. |
[in] | name | The name of the driver object to locate. |
[in] | maxSearchDepth | The maximum number of sub list levels to search for the component. |
|
inlineinherited |
Assign a new search base to the locator.
This new search base will be searched starting from the base list specified.
[in] | baselist | A unique identifier for the base list used to start searching the search base. |
|
inlineinherited |
Assign a new search base to the locator.
This new search base will be searched starting from the base list specified.
[in] | baselist | A unique identifier for the base list used to start searching the search base. |
[in] | pathToSearchBase | The name or path to the search base. |
|
inlineinherited |
Tries to locate a certain component in a hierarchy of components.
[in] | name | The name of the component to search for. |
|
inlineinherited |
Tries to locate a certain component in a hierarchy of components.
[in] | name | The name of the component to search for. |
[in] | maxSearchDepth | The maximum number of sub list levels to search for the component. |
|
getinherited |
Returns the current changed counter for the component referenced by this object.
This changed counter is incremented internally each time the component is modified. To check if this component has been modified since the last time, this check has been performed, keep track of the last return value of this function and compare it with the new value. This can be helpful e.g. to keep a GUI up to date. The value returned by this function will always be larger than or equal to the value returned by mv.impact.acquire.ComponentAccess.changedCounterAttr (except in case of a wrap around) when called at the same time for the same object as it's always incremented when the component has been modified in any way while the latter one will only be incremented if the attributes (e.g. the flags) but NOT if e.g. the value(s) of a property has been modified.
Example
|
getinherited |
Returns the current attribute changed counter for the component referenced by this object.
This changed counter is incremented internally each time the components attributes have been modified. To check if this components attributes have been modified since the last time, this check has been performed, keep track of the last return value of this function and compare it with the new value. This can be helpful e.g. to keep a GUI up to date.
|
getinherited |
Returns the display name of the component referenced by this object.
|
getinherited |
Returns a unique identifier for the component referenced by this object.
|
getinherited |
Returns the name of the component referenced by this object.
|
getinherited |
Returns the unique identifier of the base list from where to start searching for a component.