[LV2] RFC: Atom C++ bindings

David Robillard d at drobilla.net
Sun Dec 17 16:56:22 PST 2017


Hi all,

I took a stab at writing some C++11 bindings for atoms and the forge to
make things nicer/safer for C++.

Not sure about the approach, but it's at least a lot easier to use the
forge and range-based for loops over collections are shiny.  It'd be
nice to get some feedback from any C++ers.

The branch is atom-cpp:
http://lv2plug.in/git/cgit.cgi/lv2.git/log/?h=atom-cpp

There's a PR on the github mirror if you're into that sort of thing:
https://github.com/drobilla/lv2/pull/14

You can see example code in the added test, and there's also a branch
of ingen that uses this which should give an idea for real code:
http://git.drobilla.net/cgit.cgi/ingen.git/commit/?h=atom-cpp&id=7f37e2
306f79d3f77934aa97e5f784fb0b39b838

Cheers,

-- 
dr


More information about the Devel mailing list