MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / setSearchPath

Method setSearchPath

src/OpenColorIO/Context.cpp:195–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void Context::setSearchPath(const char * path)
196{
197 // TODO: Do nothing if the path is already present in the list of paths. The important aspect
198 // is to preserve the cache content.
199
200 AutoMutex lock(getImpl()->m_resultsCacheMutex);
201
202 getImpl()->m_searchPaths = StringUtils::Split(path ? path : "", ':');
203 getImpl()->m_searchPath = (path ? path : "");
204 getImpl()->clearCaches();
205}
206
207const char * Context::getSearchPath() const
208{

Callers 3

test_copyMethod · 0.95
test_interfaceMethod · 0.95
test_interfaceMethod · 0.95

Calls 3

SplitFunction · 0.85
clearCachesMethod · 0.80
getImplFunction · 0.50

Tested by 3

test_copyMethod · 0.76
test_interfaceMethod · 0.76
test_interfaceMethod · 0.76