Function rcg::setEnum

Function Documentation

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

Set the value of an enumeration 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.