Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cargo::ToKVStoreVisitor Class Reference

#include <to-kvstore-visitor.hpp>

Classes

struct  SetTupleVisitor
 

Public Member Functions

 ToKVStoreVisitor (KVStore &store, const std::string &prefix)
 
ToKVStoreVisitoroperator= (const ToKVStoreVisitor &)=delete
 
template<typename T >
void visit (const std::string &name, const T &value)
 

Private Member Functions

 ToKVStoreVisitor (const ToKVStoreVisitor &visitor, const std::string &prefix)
 
template<typename T , typename std::enable_if< isStreamableOut< T >::value, int >::type = 0>
void setInternal (const std::string &name, const T &value)
 
template<typename T , typename std::enable_if< isVisitable< T >::value, int >::type = 0>
void setInternal (const std::string &name, const T &value)
 
template<typename T , typename std::enable_if< std::is_enum< T >::value, int >::type = 0>
void setInternal (const std::string &name, const T &value)
 
template<typename I >
void setRangeInternal (const std::string &name, const I &begin, const I &end, const size_t size)
 
template<typename T >
void setInternal (const std::string &name, const std::vector< T > &values)
 
template<typename T , std::size_t N>
void setInternal (const std::string &name, const std::array< T, N > &values)
 
template<typename V >
void setInternal (const std::string &name, const std::map< std::string, V > &values)
 
template<typename T >
void setInternal (const std::string &name, const std::initializer_list< T > &values)
 
template<typename T , typename std::enable_if< isLikeTuple< T >::value, int >::type = 0>
void setInternal (const std::string &name, const T &values)
 

Private Attributes

KVStoremStore
 
std::string mKeyPrefix
 

Constructor & Destructor Documentation

cargo::ToKVStoreVisitor::ToKVStoreVisitor ( KVStore store,
const std::string &  prefix 
)
inline
cargo::ToKVStoreVisitor::ToKVStoreVisitor ( const ToKVStoreVisitor visitor,
const std::string &  prefix 
)
inlineprivate

Member Function Documentation

ToKVStoreVisitor& cargo::ToKVStoreVisitor::operator= ( const ToKVStoreVisitor )
delete
template<typename T , typename std::enable_if< isStreamableOut< T >::value, int >::type = 0>
void cargo::ToKVStoreVisitor::setInternal ( const std::string &  name,
const T &  value 
)
inlineprivate
template<typename T , typename std::enable_if< isVisitable< T >::value, int >::type = 0>
void cargo::ToKVStoreVisitor::setInternal ( const std::string &  name,
const T &  value 
)
inlineprivate
template<typename T , typename std::enable_if< std::is_enum< T >::value, int >::type = 0>
void cargo::ToKVStoreVisitor::setInternal ( const std::string &  name,
const T &  value 
)
inlineprivate
template<typename T >
void cargo::ToKVStoreVisitor::setInternal ( const std::string &  name,
const std::vector< T > &  values 
)
inlineprivate
template<typename T , std::size_t N>
void cargo::ToKVStoreVisitor::setInternal ( const std::string &  name,
const std::array< T, N > &  values 
)
inlineprivate
template<typename V >
void cargo::ToKVStoreVisitor::setInternal ( const std::string &  name,
const std::map< std::string, V > &  values 
)
inlineprivate
template<typename T >
void cargo::ToKVStoreVisitor::setInternal ( const std::string &  name,
const std::initializer_list< T > &  values 
)
inlineprivate
template<typename T , typename std::enable_if< isLikeTuple< T >::value, int >::type = 0>
void cargo::ToKVStoreVisitor::setInternal ( const std::string &  name,
const T &  values 
)
inlineprivate
template<typename I >
void cargo::ToKVStoreVisitor::setRangeInternal ( const std::string &  name,
const I &  begin,
const I &  end,
const size_t  size 
)
inlineprivate
template<typename T >
void cargo::ToKVStoreVisitor::visit ( const std::string &  name,
const T &  value 
)
inline

Member Data Documentation

std::string cargo::ToKVStoreVisitor::mKeyPrefix
private
KVStore& cargo::ToKVStoreVisitor::mStore
private

The documentation for this class was generated from the following file: