[MOAB-dev] Reader/Writer filename extension access

Robert Smith smithrm at mcs.anl.gov
Fri Apr 30 09:01:09 CDT 2010


What do you mean by "not part of the MOAB API"?  We can't dictate the  
structure of the Readers/Writers?

Is it governed by an external API definition?

--Bob

On Apr 29, 2010, at 3:57 PM, Jason Kraftcheck wrote:

> 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