carb::dictionary::makeStringArrayAtPath

Defined in omni/extras/DictHelpers.h

inline Item *carb::dictionary::makeStringArrayAtPath(Item *baseItem, const char *path, const std::vector<std::string> &arr)

Set a string array at the given path with the given array (creating it if it doesn’t yet exist).

Parameters
  • baseItem – The carb::dictionary::Item to use as a base (required)

  • path – The path of children from baseItem using / as a separator

  • arr – The array of string data to set at the given path

Returns

The carb::dictionary::Item that was either created or found at the given path