Two Approaches to Adding Persistence to C++