Impact Acquire SDK C++
Iterate Over A Tree Of Features

It's also possible to iterate over all the features offered by a device or a subtree of this. To see how this is done please have a look at the description of the class mvIMPACT::acquire::Component.

To access e.g. the device information related features, the locator instance must be initialised in a different way:

Device* pDev = getTheDevicePointerFromSomewhere();
DeviceComponentLocator locator(pDev, dltInfo, "DeviceInformation");
PropertyS deviceVersion;
locator.bindComponent( deviceVersion, "DeviceVersion" );
// now the property is ready to use when available:
if( deviceVersion.isValid() )
{
cout << deviceVersion.name() << ": " << deviceVersion.read() << endl;
}
else
{
// oops... The feature is not offered by this device
}