_KVMap Struct Reference

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

#include <KVMap.h>

Inheritance diagram for _KVMap:

KVMap< KVMapOpts > List of all members.

Public Types

typedef std::map< std::string,
std::string > 
map_type

Public Member Functions

 _KVMap ()
 _KVMap (const map_type &kvmap_r)
bool has (const std::string &key_r) const

Static Public Member Functions

static map_type split (const std::string &str_r, const Options &opts_r)
static std::string join (const map_type &kvmap_r, const Options &opts_r)

Classes

struct  CharSep
 Options for KVMaps using a single char as separator (e.g. mount options). More...
struct  Options
 Options for conversion of KVMaps to/from string. More...

Detailed Description

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


Member Typedef Documentation

typedef std::map<std::string,std::string> _KVMap::map_type
 

(key,value) map type


Constructor & Destructor Documentation

_KVMap::_KVMap  )  [inline]
 

_KVMap::_KVMap const map_type kvmap_r  )  [inline]
 


Member Function Documentation

bool _KVMap::has const std::string &  key_r  )  const [inline]
 

Test whether key is set.

static std::string _KVMap::join const map_type kvmap_r,
const Options opts_r
[inline, static]
 

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

static map_type _KVMap::split const std::string &  str_r,
const Options opts_r
[inline, static]
 

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


The documentation for this struct was generated from the following file:
Generated on Fri Jun 16 15:51:35 2006 for liby2util by  doxygen 1.4.6