[osg-submissions] fixed documentation & listed meanings for ReadResult errors in osgDB/ReaderWriter

Robert Osfield robert.osfield at gmail.com
Wed May 7 06:31:34 PDT 2008


Thanks Bob, doc changes now merged and submitted to SVN.

On Tue, Apr 29, 2008 at 6:48 PM, Bob Kuehne <rpk at blue-newt.com> wrote:
> see cross-post to osg-users:
>  --
>  hi robert, osg community,
>
>  to amplify on what paul said:
>
>  * we do a lab in our course in which we explore what plugins are capable of
> reading/writing.
>
>  * but! our results always show that plugins support an inconsistent mix of
> return values,
>   sometimes returning "ERROR_IN_READING_FILE" when they really mean that
> they don't handle
>   files of that extension, sometimes returning "FILE_NOT_HANDLED" when
> there's an error in
>   reading the file data.
>
>  * as part of our course in paris this week, we've then wondered aloud if
> there's an official
>   osg policy for these return values, and if robert had an original design
> idea behind each
>   return value. our impression is that these mean, as follows:
>
>   FILE_NOT_HANDLED, //!< file is not appropriate for this file reader, due
> to some incompatibility, but *not* a read error
>   FILE_NOT_FOUND, //!< file could not be found or could not be read
>   FILE_LOADED, //!< file successfully found, loaded, and converted into osg
>   FILE_LOADED_FROM_CACHE, //!< file found in cache and returned
>   ERROR_IN_READING_FILE //!< file found, loaded, but an error was
> encountered during processing
>
>  if this interpretation of the errors are correct, i'd like to add doxygen
> documentation
>  to that effect, and the above comments can be in-line replaced in the code
> to do so. and
>  i've sent a fixed osgDB/ReadResult to osg-submissions for this purpose.
>
>  the second thing i'd like to do, though i don't have the time, is to clean
> up the loaders
>  so that the above return scheme is used consistently. the big problem with
> the current
>  loaders is that there seems to not be a lot of consistency in error
> reporting among all
>  loaders.
>
>  thoughts?
>  bob
>
>
>  --
>
>
>
>
> _______________________________________________
>  osg-submissions mailing list
>  osg-submissions at lists.openscenegraph.org
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


More information about the osg-submissions mailing list