zypp::kvmap::KVMapBase Struct Reference

Base class for KVMaps, (key,value) pairs. More...

#include <KVMap.h>

Inheritance diagram for zypp::kvmap::KVMapBase:

map zypp::KVMap< KVMapOpts > List of all members.

Public Types

typedef std::map< std::string,
std::string > 
map_type
 (key,value) map type

Public Member Functions

 KVMapBase ()
 KVMapBase (const map_type &kvmap_r)
bool has (const std::string &key_r) const
 Test whether key is set.

Static Public Member Functions

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.

Classes

struct  CharSep
 KVMapPolicy for KVMaps using a single char as separator (e.g. More...

Detailed Description

Base class for KVMaps, (key,value) pairs.

Definition at line 83 of file KVMap.h.


Member Typedef Documentation

typedef std::map<std::string,std::string> zypp::kvmap::KVMapBase::map_type
 

(key,value) map type

Definition at line 88 of file KVMap.h.


Constructor & Destructor Documentation

zypp::kvmap::KVMapBase::KVMapBase  )  [inline]
 

Definition at line 90 of file KVMap.h.

zypp::kvmap::KVMapBase::KVMapBase const map_type kvmap_r  )  [inline]
 

Definition at line 92 of file KVMap.h.


Member Function Documentation

bool zypp::kvmap::KVMapBase::has const std::string &  key_r  )  const [inline]
 

Test whether key is set.

Definition at line 99 of file KVMap.h.

static map_type zypp::kvmap::KVMapBase::split const std::string &  str_r,
const KVMapPolicy opts_r
[inline, static]
 

Split str_r into (key,value) map, using the separators defined by opts_r.

Definition at line 115 of file KVMap.h.

References zypp::kvmap::KVMapPolicy::_fsplit, zypp::kvmap::KVMapPolicy::_kvsplit, and zypp::str::split().

static std::string zypp::kvmap::KVMapBase::join const map_type kvmap_r,
const KVMapPolicy opts_r
[inline, static]
 

Join (key,value) map into string, using the separators defined by opts_r.

Definition at line 137 of file KVMap.h.

References zypp::kvmap::KVMapPolicy::_fjoin.


The documentation for this struct was generated from the following file:
Generated on Thu Jul 6 00:07:32 2006 for zypp by  doxygen 1.4.6