Files Classes Functions Hierarchy
#include <commandline.h>
Public Member Functions | |
| map_var (T var_, map< string, string > &tbl_, stringc &key) | |
| An attempt is made to bind the variable named by key to a value passed in the _tbl as a string. | |
| boolc | foundGet () const |
| Was the bind successful? | |
| T | operator() () |
| Get the variable reference. | |
Definition at line 122 of file commandline.h.
| map_var< T >::map_var | ( | T | var_, | |
| map< string, string > & | tbl_, | |||
| stringc & | key | |||
| ) | [inline] |
An attempt is made to bind the variable named by key to a value passed in the _tbl as a string.
Definition at line 134 of file commandline.h.
00135 : var(var_), tbl(tbl_) 00136 { 00137 map<string,string>::iterator pos = tbl.find(key); 00138 found = (pos!=tbl.end()); 00139 if (found) 00140 { 00141 stringstream ss(tbl[key]); 00142 ss >> var; 00143 } 00144 }
Was the bind successful?
Definition at line 147 of file commandline.h.
Referenced by commandline::mapvar().
1.5.8