On Fri, 2008-04-18 at 11:29 -0400, John Luciani wrote: > It would be nice to be able to query symbol attributes to so that the > output of geda-query could be piped into a BOM creation program. > > On a similar line I was thinking of doing a schematic server that > could read and write schematic files. You would open a socket to the > server and send commands and receive replies.
> set attrib U10 manufacturer=ADI manufacturer_part_number=AD590 # change I'd wondered about renaming it from geda-query, as that does rather imply getters only. For example, I had wondered about adding an API to libgeda for writing back to a gafrc to add, remove or comment out a s-expr for a given search path. > A socket interface would be nice for doing database driven attribute > assignment. I was planning on starting with the query commands and > then adding the set commands. I was going to use DBus for xgsch2pcb / project manager, but I'd imagine that an "interactive" mode could be used with pipes to achieve what you're talking about. For the moment, I want to avoid as much user-input parsing as possible - this is the sort of code I hate writing, it's bad enough having to deal with the semantics of loading our files :) How does perl etc.. stand with bi-directional pipes to a child process? I seem to recall badness can happen where both processes sit blocking for each other. Thanks for the suggestions, Best wishes, Peter C. _______________________________________________ geda-dev mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
