proj home

Files   Classes   Functions   Hierarchy  

map_var< string & > Class Template Reference

Specialization of class for string values. More...

#include <commandline.h>

Collaboration diagram for map_var< string & >:

List of all members.

Public Member Functions

 map_var (string &var_, map< string, string > &tbl_, stringc &key)
boolc foundGet () const
string & operator() ()


Detailed Description

template<>
class map_var< string & >

Specialization of class for string values.

Definition at line 157 of file commandline.h.


Constructor & Destructor Documentation

map_var< string & >::map_var ( string &  var_,
map< string, string > &  tbl_,
stringc key 
) [inline]

Definition at line 164 of file commandline.h.

00165     : var(var_), tbl(tbl_)
00166   {
00167     map<string,string>::iterator pos = tbl.find(key);
00168     found = (pos!=tbl.end());
00169     if (found)
00170     {
00171       var = tbl[key];
00172     }
00173   }


Member Function Documentation

boolc map_var< string & >::foundGet (  )  const [inline]

Definition at line 175 of file commandline.h.

00175 { return found; }

string& map_var< string & >::operator() (  )  [inline]

Definition at line 176 of file commandline.h.

00176 { return var; }


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

Generated on Fri Mar 4 00:50:04 2011 for Chelton Evans Source by  doxygen 1.5.8