Impact Acquire SDK C++
|
A base class to implement access to internal driver objects. More...
#include <mvIMPACT_acquire.h>
Public Member Functions | |
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. | |
ComponentAccess (const ComponentAccess &src) | |
Constructs a new mvIMPACT::acquire::ComponentAccess from an existing one. | |
std::string | displayName (void) const |
Returns the display name of the component referenced by this object. | |
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. | |
ComponentAccess & | operator= (const ComponentAccess &rhs) |
Allows assignments of mvIMPACT::acquire::ComponentAccess objects. | |
virtual | ~ComponentAccess (void) |
Protected Types | |
enum | { BUFFER_INCREMENT_FACTOR = 6 } |
An internal constant that defines by which factor dynamic buffers will grow when the current size is not sufficient. More... | |
Protected Member Functions | |
std::string | compGetStringParam (TOBJ_StringQuery query, int param1=0, int param2=0) const |
A helper function to query certain component related string parameters. | |
ComponentAccess (HOBJ hObj) | |
Constructs a new mvIMPACT::acquire::ComponentAccess object to a driver object. | |
ComponentAccess (void) | |
Constructs a new unbound mvIMPACT::acquire::ComponentAccess object. | |
Static Protected Member Functions | |
static char * | stringAllocator (const char *pBuf, size_t reqBufSize) |
An internal helper function for fast string allocation. | |
Protected Attributes | |
HOBJ | m_hObj |
A unique identifier for the internal driver object referenced by this instance of mvIMPACT::acquire::ComponentAccess. | |
Friends | |
class | ComponentLocatorBase |
A base class to implement access to internal driver objects.
Instances of this class can't be constructed directly.
|
protected |
|
inlineexplicitprotected |
Constructs a new mvIMPACT::acquire::ComponentAccess object to a driver object.
[in] | hObj | A valid handle to a component object |
|
inlineexplicitprotected |
Constructs a new unbound mvIMPACT::acquire::ComponentAccess object.
|
inlinevirtual |
|
inline |
Constructs a new mvIMPACT::acquire::ComponentAccess from an existing one.
[in] | src | A constant reference to the mvIMPACT::acquire::ComponentAccess object, this object shall be created from |
|
inline |
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 mvIMPACT::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.
|
inline |
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.
|
inlineprotected |
A helper function to query certain component related string parameters.
This function might throw an exception, if an invalid parameter has been queried.
query | The type of the parameter to read | |
[in] | param1 | An additional parameter |
[in] | param2 | An additional parameter |
|
inline |
Returns the display name of the component referenced by this object.
|
inline |
Returns a unique identifier for the component referenced by this object.
|
inline |
Returns the name of the component referenced by this object.
|
inline |
Allows implicit conversion to a HOBJ.
|
inline |
Allows assignments of mvIMPACT::acquire::ComponentAccess objects.
|
inlinestaticprotected |
An internal helper function for fast string allocation.
|
friend |
|
protected |
A unique identifier for the internal driver object referenced by this instance of mvIMPACT::acquire::ComponentAccess.