Base class for KVMaps, (key,value) pairs.
More...
#include <kvmap.h>
|
typedef std::map< std::string, std::string > | map_type |
| (key,value) map type
|
|
|
static map_type | split (const std::string &str_r, const KVMapPolicy &opts_r) |
| Split str_r into (key,value) map, using the separators defined by opts_r.
|
|
static std::string | join (const map_type &kvmap_r, const KVMapPolicy &opts_r) |
| Join (key,value) map into string, using the separators defined by opts_r.
|
|
Base class for KVMaps, (key,value) pairs.
Definition at line 81 of file kvmap.h.
◆ map_type
(key,value) map type
Definition at line 86 of file kvmap.h.
◆ KVMapBase() [1/2]
zypp::kvmap::KVMapBase::KVMapBase |
( |
| ) |
|
|
inline |
◆ KVMapBase() [2/2]
zypp::kvmap::KVMapBase::KVMapBase |
( |
const map_type & |
kvmap_r | ) |
|
|
inline |
◆ has()
bool zypp::kvmap::KVMapBase::has |
( |
const std::string & |
key_r | ) |
const |
|
inline |
Test whether key is set.
Definition at line 97 of file kvmap.h.
◆ split()
static map_type zypp::kvmap::KVMapBase::split |
( |
const std::string & |
str_r, |
|
|
const KVMapPolicy & |
opts_r |
|
) |
| |
|
inlinestatic |
Split str_r into (key,value) map, using the separators defined by opts_r.
Definition at line 113 of file kvmap.h.
◆ join()
static std::string zypp::kvmap::KVMapBase::join |
( |
const map_type & |
kvmap_r, |
|
|
const KVMapPolicy & |
opts_r |
|
) |
| |
|
inlinestatic |
Join (key,value) map into string, using the separators defined by opts_r.
Definition at line 135 of file kvmap.h.
The documentation for this struct was generated from the following file: