old_code/ConfigFile.cpp
// special string getter.  This is really for the python
// bindings for just viewing quickly the contents.  Hence
// also throwing const char* for now, which swig can easily
// deal with

special string getter.  This is really for the python
bindings for just viewing quickly the contents.  Hence
also throwing const char* for now, which swig can easily
deal with
special string getter . This is really for the python bindings for just viewing quickly the contents . Hence also throwing const char * for now which swig can easily deal with
std::string ConfigFile::getstr(const std::string key) const throw (const char*) 
{
    MapCIt p = _contents.find(key);
    if (p == _contents.end()) {
        std::stringstream err;
        err<<"ConfigFile error: key '"<<key<<"' not found";
        throw err.str().c_str();
    }
    std::string val = get(key);
    return val;
}
std :: string ConfigFile :: getstr ( const std :: string key ) const throw ( const char * ) { MapCIt p = _contents . find ( key ) ; if ( p == _contents . end ( ) ) { std :: stringstream err ; err << " " << key << " " ; throw err . str ( ) . c_str ( ) ; } std :: string val = get ( key ) ; return val ; }
special string getter.
special string getter .