Re: Commit: autoconf and new import/export framework


Subject: Re: Commit: autoconf and new import/export framework
From: Sam TH (sam@uchicago.edu)
Date: Thu May 03 2001 - 12:05:31 CDT


On Thu, May 03, 2001 at 12:47:53PM -0400, Dom Lachowicz wrote:
> >Ok, here's how it looks to me.
> >
> >ie_imp.cpp, ie_exp.cpp, ie_[imp,exp]_Graphic* should all go in
> >af/xap.
> >
> >However, this can't happen immediately, since ie_[imp,exp].cpp both
> >include all the header files for all their importers. Didn't you have
> >a way to declare these dynamically, Dom? I thought you had checked
> >that in.
>
> Yes, you can declare them dynamically now. The only problem is "declare them
> dynamically from where?"
>
> To register an importer (just as an example) you need to first implement an
> extremely simple and generic "Sniffer" subclass, which is responsible for
> methods like "recognizeContents", "getDlgLabels", "recognizeSuffix" and most
> importantly, the Sniffer can create an instance of a managed
> importer/exporter class.
>
> You what you have to do is call this following line from somewhere:
>
> #include "myfiletype_importer.h"
> IE_Imp::registerImporter (new MyFileTypeSniffer());
>
> And that's all. Now the bigger question is where whe should register these
> from. Dynamically via plugins is a good choice, but I'm sure that there are
> other alternatives that I just can't think of now. That's the reason for the
> init() methods now.

Maybe I'm just being dense, but shouldn't this be done at app startup
time?
           
sam th --- sam@uchicago.edu --- http://www.abisource.com/~sam/
OpenPGP Key: CABD33FC --- http://samth.dyndns.org/key
DeCSS: http://samth.dynds.org/decss




This archive was generated by hypermail 2b25 : Sat May 26 2001 - 03:51:01 CDT