Function rcg::setIPV4Address

Function Documentation

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

Set the value of an integer feature of the given nodemap from an IP address.

Parameters:
  • nodemap – Initialized nodemap.

  • name – Name of feature.

  • value – IP address formated as string, i.e. <v0>.<v1>.<v2>.<v3>

  • 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.