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

Function LookupRole

src/OpenColorIO/Config.cpp:147–152  ·  view source on GitHub ↗

Roles (lower case role name: colorspace name)

Source from the content-addressed store, hash-verified

145// Roles
146// (lower case role name: colorspace name)
147const char* LookupRole(const StringMap & roles, const std::string & rolename)
148{
149 StringMap::const_iterator iter = roles.find(StringUtils::Lower(rolename));
150 if(iter == roles.end()) return "";
151 return iter->second.c_str();
152}
153
154void GetFileReferences(std::set<std::string> & files, const ConstTransformRcPtr & transform)
155{

Callers 8

getColorSpaceMethod · 0.85
getFilteredViewsMethod · 0.85
validateMethod · 0.85
isColorSpaceUsedMethod · 0.85
hasRoleMethod · 0.85
getRoleColorSpaceMethod · 0.85

Calls 2

LowerFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected