Function rcg::saveFile

Function Documentation

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

Loads the contents of the given string as a file via the GenICam FileAccessControl interface.

Parameters:
  • nodemap – Initialized nodemap.

  • name – Name of file.

  • data – String with file contents.

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

Returns:

True if file has been written successfully. False in case of an error.