Function rcg::getBoolean

Function Documentation

bool rcg::getBoolean(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name, bool exception = false, bool igncache = false)

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

Parameters:
  • nodemap – Initialized nodemap.

  • name – Name of feature.

  • 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 boolean feature or false if the feature does not exist, has a different datatype or is not readable.