libzypp  13.10.6
zypp::KVMap< KVMapOpts > Struct Template Reference

A map of (key,value) strings. More...

#include <KVMap.h>

Inheritance diagram for zypp::KVMap< KVMapOpts >:
zypp::kvmap::KVMapBase

Public Member Functions

 KVMap ()
 
 KVMap (const char *str_r)
 
 KVMap (const std::string &str_r)
 
 KVMap (const map_type &map_r)
 
 ~KVMap ()
 
std::string asString () const
 
- Public Member Functions inherited from zypp::kvmap::KVMapBase
 KVMapBase ()
 
 KVMapBase (const map_type &kvmap_r)
 
bool has (const std::string &key_r) const
 Test whether key is set. More...
 

Additional Inherited Members

- Public Types inherited from zypp::kvmap::KVMapBase
typedef std::map< std::string,
std::string > 
map_type
 (key,value) map type More...
 
- Static Public Member Functions inherited from zypp::kvmap::KVMapBase
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. More...
 
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. More...
 

Detailed Description

template<typename KVMapOpts>
struct zypp::KVMap< KVMapOpts >

A map of (key,value) strings.

The template argument defines the kvmap::Options for split and join.

E.g. mount options (a comma separated list of key[=value] pairs) could be handled by KVMap<kvmap::KVMapBase::Comma>.

Definition at line 176 of file KVMap.h.

Constructor & Destructor Documentation

template<typename KVMapOpts >
zypp::KVMap< KVMapOpts >::KVMap ( )
inline

Definition at line 178 of file KVMap.h.

template<typename KVMapOpts >
zypp::KVMap< KVMapOpts >::KVMap ( const char *  str_r)
inline

Definition at line 180 of file KVMap.h.

template<typename KVMapOpts >
zypp::KVMap< KVMapOpts >::KVMap ( const std::string &  str_r)
inline

Definition at line 183 of file KVMap.h.

template<typename KVMapOpts >
zypp::KVMap< KVMapOpts >::KVMap ( const map_type map_r)
inline

Definition at line 186 of file KVMap.h.

template<typename KVMapOpts >
zypp::KVMap< KVMapOpts >::~KVMap ( )
inline

Definition at line 190 of file KVMap.h.

Member Function Documentation

template<typename KVMapOpts >
std::string zypp::KVMap< KVMapOpts >::asString ( ) const
inline

Definition at line 192 of file KVMap.h.


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