AYON Cpp Dev Tools  0.1.0
Loading...
Searching...
No Matches
rootHelpers.hpp File Reference
#include "../../../../NameSpaceDef/namespaces.hpp"
#include "../../lib/logging/AyonLogger.hpp"
#include <algorithm>
#include <regex>
#include <string>
#include <unordered_map>
Include dependency graph for rootHelpers.hpp:

Go to the source code of this file.

Functions

YNPUT_TOOL_AYON_NAMESPACE_OPEN std::string rootReplace (const std::string &rootLessPath, const std::unordered_map< std::string, std::string > &siteRoots)
 allows to replace the {root[xxx]} key from an Ayon resolver endpoint with the local root overwrites More...
 

Function Documentation

◆ rootReplace()

YNPUT_TOOL_AYON_NAMESPACE_OPEN std::string rootReplace ( const std::string &  rootLessPath,
const std::unordered_map< std::string, std::string > &  siteRoots 
)

allows to replace the {root[xxx]} key from an Ayon resolver endpoint with the local root overwrites

Parameters
rootLessPatha path that needs its root replaces e.g {root[work]}/file/path.ext
siteRootsa list of roots availalbe on the system e.g {work=/path/to, temp=/path/to}
Returns
input string with the correct root replace. the {root[key]} will be removed
Here is the call graph for this function: