bengtmartensson / IrpTransmogrifier

Parser for IRP notation protocols, with rendering, code generation, and decoding.
http://www.harctoolbox.org/
GNU General Public License v3.0
26 stars 5 forks source link

Modularize IrpProtocols.xml, alternatively allow several #68

Closed bengtmartensson closed 5 years ago

bengtmartensson commented 7 years ago

... like exportformats in IrScrutinizer (if it is a file, read it (with xinclude processing), if it is a directory, read its files and insert them as a top level children in a DOM).

Allowing several such is also a good idea, Basically it means that config-file will be a path.

No need to support ini formats here.

There should also be supported "anti-protocols", for removing entries made earlier in the path, for example

<irp:protocol name="NEC1"/>
bengtmartensson commented 5 years ago

Alternative: allow several, both from the command line (order taken into account!), and through API. Later entries will be merged, possibly overwriting earlier.

The irp:parameter then needs an attribute @action=replace|append (latter the default). removes all previously assigned values. Parameters are treated in the order they appear.

bengtmartensson commented 5 years ago

Selected solution: IrpDatabase.patch(File) and other. Constructor can take a List. The common option --configfile takes several file names, separated by colons.