[MOAB-dev] Reader/Writer filename extension access

Jason Kraftcheck kraftche at cae.wisc.edu
Thu Apr 29 15:57:50 CDT 2010


Robert Smith wrote:

> 
> I see 2 possibilities:
> 
>     A - have a function that searches through the ReaderWriterSet list
> of registered factory methods and matches the factory method on a
> particular subclass of ReaderIface/WriterIface.
> 
>     B - move the extensions to the actual Reader/Writer classes as a
> static data member that could be returned by either a static member
> function (for use in registration in ReaderWriterSet) or a virtual
> function defined on ReaderIface (for use to solve 2a) above).
> 

Neither of these would be acceptable because the class definitions for
individual Reader/Writer implementations are not part of the MOAB API.

- jason


More information about the moab-dev mailing list