Function rcg::checkFeature

Function Documentation

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

Checks the value of given feature and throws an exception in case of a mismatch. The check succeeds if the feature does not exist.

Parameters:
  • nodemap – Feature nodemap.

  • name – Name of feature.

  • value – Expected value of feature.

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