00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE Linux AG | 00011 \----------------------------------------------------------------------/ 00012 00013 File: SysConfig.h 00014 00015 Author: Cornelius Schumacher <cschum@suse.de> 00016 Maintainer: Cornelius Schumacher <cschum@suse.de> 00017 00018 /-*/ 00019 #ifndef SysConfig_h 00020 #define SysConfig_h 00021 00022 #include <string> 00023 #include <map> 00024 00039 class SysConfig 00040 { 00041 public: 00048 SysConfig( const char *path ); 00049 00050 ~SysConfig(); 00051 00052 00059 std::string readEntry( const std::string &key, 00060 const std::string &defaultValue = std::string() ); 00061 00062 }; 00063 00064 #endif