|
From: Andreas V. <li...@br...> - 2008-09-08 20:55:23
|
Am Wed, 3 Sep 2008 00:45:17 +0200 schrieb Andreas Volz: > Am Tue, 2 Sep 2008 00:20:15 +0200 schrieb Andreas Volz: > > > Am Sun, 31 Aug 2008 18:16:13 +0200 schrieb P. Durante: > > > > Hello Paolo, > > > > currently I work on a example implementation that explains all my > > ideas. I hope tomorrow it's finished and ready to show. Then we talk > > again about it. > > Here is the result of my proposal. I modified the dbusxx-xml2cpp tool > to generate the object binding. See here: > > http://gitorious.org/projects/dbus-cplusplus/repos/mainline/blobs/master/tools%2Fxml2cpp.cpp > > As result it parses the object="MyObject" code in the XML and > generates code based on it. See here a prototype of my communication > library: > > http://www.tux-style.de/tmp/dbus-cplusplus/oicf-0.1.tar.gz > > and here the dbus-c++ code generated with it: > > http://www.tux-style.de/tmp/dbus-cplusplus/oicf-0.1_bin.tar.gz > > It seems to work for signals and methods, but it's not extreme tested > for in and out values. I need to write more tests for it. > > It works well and is 100% compatible to other dbus bindings. You even > don't need to do it in dbus-c++ if you fear of more object creations > while communications. Simply don't use the "object" tag. > > What do you think? > > I would like to see it integrated into the official repo. > > BTW: As I noticed the tabs aren't perfect. In both source code and > generated code. But I think that's a minor problem. > > BTW2: Maybe you noticed that I added some more comments for > dbusxx-xml2cpp while understanding it. So the next new person will > faster understand it. Did you've some time to look into my proposal? regards Andreas |