Simple API that may wrap different key/value starges. Property tree is not supported yet
- SQLite3
class prop;
Pure abstract class has list of API to be implemented by different backends
#include <propertypp/property.hpp>
#include <iostream>
#include <string>
#include <memory>
static const std::string property_file("property.db");
using namespace property;
int main()
{
sp_property prop;
try {
prop = std::make_shared<sqlite>(property_file);
} catch (const std::exception &e) {
std::cerr << e.what() << "\n";
return 1;
}
return 0;
}