Function rcg::setInteger

Function Documentation

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

Set the value of an integer feature of the given nodemap.

Parameters:
  • nodemap – Initialized nodemap.

  • name – Name of feature.

  • value – New value of feature.

  • exception – True if an error should be signaled via exception instead of a return value.

Returns:

True if value has been changed. False if feature does not exist, has a different datatype or is not writable.