Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
libcargo-sqlite-json

cargo SQLite with Json interface More...

Functions

template<class Cargo >
void cargo::loadFromKVStoreWithJson (const std::string &kvfile, const std::string &json, Cargo &visitable, const std::string &kvVisitableName)
 Load the visitable from KVStore with defaults given in json. More...
 
template<class Cargo >
void cargo::loadFromKVStoreWithJsonFile (const std::string &kvfile, const std::string &jsonfile, Cargo &visitable, const std::string &kvVisitableName)
 Load the data from KVStore with defaults given in json file. More...
 

Detailed Description

cargo SQLite with Json interface

Function Documentation

template<class Cargo >
void cargo::loadFromKVStoreWithJson ( const std::string &  kvfile,
const std::string &  json,
Cargo &  visitable,
const std::string &  kvVisitableName 
)

Load the visitable from KVStore with defaults given in json.

Parameters
kvfilepath to the KVStore db
jsonpath to json file with defaults
visitablevisitable structure to save
kvVisitableNamename of the structure inside the KVStore db
template<class Cargo >
void cargo::loadFromKVStoreWithJsonFile ( const std::string &  kvfile,
const std::string &  jsonfile,
Cargo &  visitable,
const std::string &  kvVisitableName 
)

Load the data from KVStore with defaults given in json file.

Parameters
kvfilepath to the KVStore db
jsonfilepath to json file with defaults
visitablevisitable structure to save
kvVisitableNamename of the structure inside the KVStore db