Function rcg::getEnum(const std::shared_ptr<GenApi::CNodeMapRef>&, const char *, bool)

Function Documentation

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

Get the value of an enumeration of the given nodemap.

Parameters:
  • nodemap – Initialized nodemap.

  • name – Name of feature.

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

Returns:

Value of enumeration or an empty string if the feature does not exist, has a different datatype or is not readable.