Function rcg::getFloat

Function Documentation

double rcg::getFloat(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name, double *vmin = 0, double *vmax = 0, bool exception = false, bool igncache = false)

Get the value of a double feature of the given nodemap.

Parameters:
  • nodemap – Initialized nodemap.

  • name – Name of feature.

  • vmin – Minimum value. A null poiter can be given if the value is not required.

  • vmax – Maximum value. A null poiter can be given if the value is not required.

  • exception – True if an error should be signaled via exception.

  • igncache – True if value is always read from the device, even if cached.

Returns:

Value of feature or 0 if the feature does not exist, has a different datatype or is not readable. In this case vmin and vmax will also be set to 0.