Loading…
This event has ended. View the official site or create your own event → Check it out
This event has ended. Create your own
Please visit the C++Now website.
View analytic
Wednesday, May 14 • 11:00am - 12:30pm
Practical Type Erasure: A boost::any Based Configuration Framework

Log in to save this to your schedule and see who's attending!

Configuration frameworks have been around a long time, ranging from the classic .INI file to Boost Property Tree and many many others, but one of the problems in C++ implementations has been how to store and return different types while keeping a sane interface.

The configuration framework presented in this talk features a client-facing front end that can return any copyable C++ object based on a string key. The back end stores the data in memory, a file, a database, or any other storage mechanism, of which the client and front end are blissfully unaware. A glue layer connects the front and back ends and remains ignorant of the nature of the data being passed around. The magic is a combination of boost:any and objects and it's all done in C++03. This presentation will show the framework's objectives, design, and usage, emphasizing the practicalities of using type erasure and boost::any. If time permits, a simple back-end storage object will be developed and added to the framework.

The code for this framework was originally developed for a US Government project and is in the public domain courtesy of the US taxpayers.

Speakers
avatar for Cheinan Marks

Cheinan Marks

Senior Developer, Spiral Genetics
Cheinan Marks is a senior software developer at Spiral Genetics, Inc., in Seattle, WA, where he helps attack genomic alignment and assembly problems by throwing dozens of computers at them simultaneously. He got his start in the TUTOR language on the PLATO system at the University of Illinois. Having gotten his doctorate in chemical engineering, he enjoys developing new ideas in software, particularly scientific ideas, and turning them into... Read More →


Wednesday May 14, 2014 11:00am - 12:30pm
Bethe

Attendees (23)