Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2009, 2:58:20 PM (15 years ago)
Author:
dafrick
Message:

Small adjustments, better code re-use, added getConfig() function to get values of config values.

Location:
code/branches/presentation2/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/ConfigFileManager.cc

    r5929 r6197  
    5656        }
    5757        return false;
     58    }
     59   
     60    std::string getConfig(const std::string& classname, const std::string& varname)
     61    {
     62        return ConfigFileManager::getInstance().getValue(ConfigFileType::Settings, classname, varname, "", true);
    5863    }
    5964
  • code/branches/presentation2/src/libraries/core/ConfigFileManager.h

    r6194 r6197  
    5757
    5858    _CoreExport bool config(const std::string& classname, const std::string& varname, const std::string& value); // tolua_export
     59    _CoreExport std::string getConfig(const std::string& classname, const std::string& varname); // tolua_export
    5960    _CoreExport bool tconfig(const std::string& classname, const std::string& varname, const std::string& value);
    6061    _CoreExport void reloadConfig();
Note: See TracChangeset for help on using the changeset viewer.