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

Method set

src/OpenColorIO/CustomKeys.h:46–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void set(const char * key, const char * value)
47 {
48 if (!key || !*key)
49 {
50 throw Exception("Key has to be a non-empty string.");
51 }
52 if (value && *value)
53 {
54 m_customKeys[key] = value;
55 }
56 else
57 {
58 m_customKeys.erase(key);
59 }
60 }
61
62 bool hasKey(const char * key)
63 {

Callers 6

setCustomKeyMethod · 0.80
setCustomKeyMethod · 0.80
fileRulesAreEqualFunction · 0.80
viewingRulesAreEqualFunction · 0.80
initializeFunction · 0.80
jquery.min.jsFile · 0.80

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected