Re: Review: Add config.sanityCheck
Malcolm Humphreys <malcolmh...@...>
Could we call this config.validate(), I know we are all a bit insane ;) enum ConfigValid { CONFIG_UNKNOWN = 0, CONFIG_VALID, CONFIG_INVALID } What do you think about not throwing an exception but returning the enum and the error text? something like: OCIO::ConstConfigRcPtr config = OCIO::GetCurrentConfig(); if(config.validate(&errstr) == CONFIG_INVALID) // do something sane .malcolm
On 21 Dec, 2010,at 01:26 PM, Jeremy Selan <jere...@...> wrote:
|
|