A variant of KVStoreVisitor that ignore non-existing fields. More...
#include <from-kvstore-ignoring-visitor.hpp>
Public Member Functions | |
FromKVStoreIgnoringVisitor (KVStore &store, const std::string &prefix) | |
FromKVStoreIgnoringVisitor (const FromKVStoreVisitorBase< FromKVStoreIgnoringVisitor > &visitor, const std::string &prefix) | |
FromKVStoreIgnoringVisitor & | operator= (const FromKVStoreIgnoringVisitor &)=delete |
void | visit (const std::string &name, T &value) |
Protected Member Functions | |
template<typename T > | |
void | visitImpl (const std::string &name, T &value) |
Protected Attributes | |
KVStore & | mStore |
std::string | mKeyPrefix |
Private Member Functions | |
FromKVStoreIgnoringVisitor (const FromKVStoreIgnoringVisitor &visitor, const std::string &prefix) | |
template<typename T , typename std::enable_if< isUnion< T >::value, int >::type = 0> | |
void | getInternal (const std::string &name, T &value) |
template<typename T , typename std::enable_if<!isUnion< T >::value, int >::type = 0> | |
void | getInternal (const std::string &name, T &value) |
Friends | |
class | FromKVStoreVisitorBase |
A variant of KVStoreVisitor that ignore non-existing fields.
Allows to partially update visited structures with fields that exist in the KVStore.
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
delete |
|
inlineinherited |
|
inlineprotected |
|
friend |
|
protectedinherited |
|
protectedinherited |