kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #11215
Re: Pluggable IO modules
On 09/16/2013 09:21 AM, Miguel Angel wrote:
I have drafted a blueprint, on how we could implement a pluggable IO
modules.
_https://blueprints.launchpad.net/kicad/+spec/pluggable-file-io_
If you have a moment, please give it a read, and comment on this thread
or edit over the draft if you feel something is plain wrong.
Hi Miguel,
Looks good, I have two minor suggestions:
1. I wouldn't use any ID values that have to be pre-defined, there's a
risk of conflict. IMHO it's simpler and more error proof to index
plugins by names (something like pcbnew.io.eagle, etc.)
2. Register all plugins globally in some sort of PLUGIN_MANAGER class,
that takes care of enumerating and allocating/freeing the DLLs and
querying plugins with a given interface. The IO_MGR in pcbnew will only
request PCB I/O plugins, some equivalent of it in eeschema will deal
with schematics, etc.
Cheers,
Tom
Dick, I really appreciate your comments & ideas, as you are the IO_MGR &
PLUGIN classes author (high % at least)
Miguel Angel Ajo Pelayo
http://www.nbee.es
+34 636 52 25 69
skype: ajoajoajo
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp
Follow ups
References