imageworks/OpenColorIO — pull request #322 by malcolmhumphreys (2013-08-13 21:13:09+00:00)
Title: Added the ability to explicitly declare config envvars

old profiles are supported which still load the entire environment,
this is disabled as soon as you define an 'environment:' section.

eg.
--snip--
ocio_profile_version: 1
environment:
SHOW: super
SHOT: test
SEQ: foo
test: bar${cheese}
cheese: chedder
...
--snip--

ABI Changes:
- added Config::addEnvironmentVar(const char * name, const char * defaultValue)
- added Config::getNumEnvironmentVars()
- added Config::getEnvironmentVarNameByIndex(int index)
- added Config::getEnvironmentVarDefault(const char * name)
- added Config::clearEnvironmentVars()
- added EnvironmentMode enum
- added EnvironmentModeToString(EnvironmentMode mode)
- added EnvironmentModeFromString(const char * s)
- added Context::clearStringVars()
- added Context::setEnvironmentMode(EnvironmentMode mode)
- added Context::getEnvironmentMode()