|
bool | bindComponent (Component &access, const std::string &name, int searchMode=0, int maxSearchDepth=INT_MAX) const |
| Binds an access object to an internal driver object.
|
|
HLIST | bindSearchBase (HLIST baselist, const std::string &pathToSearchBase="") |
| Assign a new search base to the locator.
|
|
HLIST | bindSearchBaseList (Device *pDev, TDeviceListType deviceListType, const std::string &sublistName="") |
| Assign a new search base to the locator.
|
|
unsigned int | changedCounter (void) const |
| Returns the current changed counter for the component referenced by this object.
|
|
unsigned int | changedCounterAttr (void) const |
| Returns the current attribute changed counter for the component referenced by this object.
|
|
| DeviceComponentLocator () |
| Constructs a new unbound locator.
|
|
| DeviceComponentLocator (Device *pDev, TDeviceListType deviceListType, const std::string &sublistName="") |
| Constructs a new locator and bind the search base to the specified list type of the device.
|
|
| DeviceComponentLocator (HLIST baselist) |
| Constructs a new bound to the specified base list locator.
|
|
| DeviceComponentLocator (HLIST baselist, const std::string &pathToSearchBase) |
| Constructs a new locator and searches the search base list.
|
|
std::string | displayName (void) const |
| Returns the display name of the component referenced by this object.
|
|
HOBJ | findComponent (const std::string &name, int searchMode=0, int maxSearchDepth=INT_MAX) const |
| Tries to locate a certain component in a hierarchy of components.
|
|
HOBJ | hObj (void) const |
| Returns a unique identifier for the component referenced by this object.
|
|
std::string | name (void) const |
| Returns the name of the component referenced by this object.
|
|
| operator HOBJ () const |
| Allows implicit conversion to a HOBJ.
|
|
HLIST | searchbase_id (void) const |
| 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. mvIMPACT::acquire::Property objects contain data such as the current gain in dB, the state of a digital input, etc.. mvIMPACT::acquire::Method objects can be executed like a normal function and mvIMPACT::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.
In general the properties interesting for the user can be found in one of the classes offered by this interface, but when a special property is needed or a new property that hasn't been embedded into the C++ interface, this class offers a way to get hold of its handle.
enum TMyEnumType
{
metOne = 0,
metTwo,
metThree
};
void fn( void )
{
if( pDev )
{
locator.bindComponent( prop, "MyProp" );
{
int myVal = 666;
iProp.write( myVal );
}
locator.bindComponent( fProp, "MyFloatProperty" );
PropertyIMyEnumType eProp;
locator.bindComponent( eProp, "MyEnumeratedProperty" );
}
}
HOBJ hObj(void) const
Returns a unique identifier for the component referenced by this object.
Definition mvIMPACT_acquire.h:1198
TComponentType type(void) const
Returns the type of the referenced component.
Definition mvIMPACT_acquire.h:1785
A class to locate components within the driver.
Definition mvIMPACT_acquire.h:8043
Grants access to devices that can be operated by this software interface.
Definition mvIMPACT_acquire.h:7171
Device * getDeviceByProduct(const std::string &product="", unsigned int devNr=0, char wildcard=' *') const
Tries to locate a device via the product name.
Definition mvIMPACT_acquire.h:7663
This class and its functions represent an actual device detected by this interface in the current sys...
Definition mvIMPACT_acquire.h:6118
const EnumPropertyF & write(ZYX value, int index=0) const
Writes one value to the property.
Definition mvIMPACT_acquire.h:3979
A base class for properties.
Definition mvIMPACT_acquire.h:3134
const Property & writeS(const std::string &value, int index=0) const
Assigns a new value to this property.
Definition mvIMPACT_acquire.h:3550
EnumPropertyF< double > PropertyF
A type for floating point properties.
Definition mvIMPACT_acquire.h:4054
@ dltSetting
Specifies a certain setting.
Definition mvIMPACT_acquire.h:7838
@ ctPropInt
Defines a property for 32 bit integer values.
Definition mvPropHandlingDatatypes.h:348
- Examples
- FirmwareUpdate.cpp, GenericInterfaceLayout.cpp, GenericInterfaceLayout.legacy.cpp, GigEVisionActionFeatures.cpp, Properties.cpp, and Properties.legacy.cpp.