[libavg-devel] More node creation enhancements.
Ulrich von Zadow
uzadow at libavg.de
Thu Feb 28 19:54:46 CET 2008
Hi,
I spent a (long) day and got the generic attribute initialization that
Nick and I had discussed to work :-). The statistics say I changed a lot
of code and in the end there were less lines than before:
uzadow ~/libavg/libavg $ svn diff | diffstat
configure.in | 1
src/player/AVGNode.cpp | 14 ++--
src/player/Arg.cpp | 89 ------------------------------
src/player/Arg.h | 70 +++++++++++++++++++-----
src/player/ArgBase.cpp | 46 +++------------
src/player/ArgBase.h | 31 ++++++----
src/player/ArgList.cpp | 121
+++++++++++++++++++++++-------------------
src/player/ArgList.h | 35 ++++++------
src/player/CameraNode.cpp | 63 +++++++++++----------
src/player/DivNode.cpp | 6 +-
src/player/Image.cpp | 12 +---
src/player/Makefile.am | 2
src/player/Node.cpp | 64 ++++++++++------------
src/player/Node.h | 3 -
src/player/NodeDefinition.cpp | 33 +----------
src/player/NodeDefinition.h | 5 -
src/player/NodeFactory.cpp | 41 ++++++++------
src/player/NodeFactory.h | 6 +-
src/player/PanoImage.cpp | 26 +++------
src/player/Player.cpp | 5 -
src/player/RasterNode.cpp | 31 +++++-----
src/player/RasterNode.h | 3 -
src/player/Video.cpp | 15 ++---
src/player/VideoBase.cpp | 4 -
src/player/VideoBase.h | 2
src/player/Words.cpp | 73 +++++++++++--------------
26 files changed, 359 insertions(+), 442 deletions(-)
It works mostly like we discussed. In addition, there is a templated
Arg<T> class now that takes care of type-safety when setting members
using offsetof().
Cheers,
Uli
PS: For anyone that's interested - you can follow all commits to libavg
by subscribing to the rss feed at
http://www.libavg.de/websvn/rss.php?repname=libavg&path=%2F.%2F&rev=0&sc=0&isdir=1
--
Ulrich von Zadow | +49-172-7872715
Jabber: cocacoder at jabber.berlin.ccc.de
Skype: uzadow
More information about the libavg-devel
mailing list