[MOAB-dev] Reader/Writer filename extension access

Jason Kraftcheck kraftche at cae.wisc.edu
Fri Apr 30 13:27:31 CDT 2010


Tim Tautges wrote:
> I think sometimes you want to know ahead of time which will be used.
> 

But sometimes MOAB doesn't know until after the file is read.  The most
robust way to implement something like this would probably be to have each
file reader implement a virtual function that checks whether or not the file
is the correct format for the reader based on file internals.  Then provide
some MOAB API to access that.  Perhaps an option to load_file that instructs
it to only create the set tagged with the file type but not read in any data.

- jason


More information about the moab-dev mailing list