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

Function Documentation

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

Get the current value and list of possible values of an enumeration of the given nodemap.

Parameters:
  • nodemap – Initialized nodemap.

  • name – Name of feature.

  • list – List of possible values.

  • 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. In this case, the returned list will be empty.