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

cargo KVStore interface More...

Functions

template<class Cargo >
void cargo::loadFromKVStore (const std::string &filename, Cargo &visitable, const std::string &visitableName)
 Loads a visitable structure from KVStore. More...
 
template<class Cargo >
void cargo::saveToKVStore (const std::string &filename, const Cargo &visitable, const std::string &visitableName)
 Saves the visitable to a KVStore. More...
 

Detailed Description

cargo KVStore interface

Function Documentation

template<class Cargo >
void cargo::loadFromKVStore ( const std::string &  filename,
Cargo &  visitable,
const std::string &  visitableName 
)

Loads a visitable structure from KVStore.

Parameters
filenamepath to the KVStore db
visitablevisitable structure to load
visitableNamename of the structure inside the KVStore db
template<class Cargo >
void cargo::saveToKVStore ( const std::string &  filename,
const Cargo &  visitable,
const std::string &  visitableName 
)

Saves the visitable to a KVStore.

Parameters
filenamepath to the KVStore db
visitablevisitable structure to save
visitableNamename of the structure inside the KVStore db