⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 settings.h

📁 日志解析
💻 H
字号:
/***************************************************************************	revision             : $Id: settings.h,v 1.1.1.1 2005/10/04 10:50:23 wiz Exp $    copyright            : (C) 2005 by Simone Tellini    email                : tellini@users.sourceforge.net ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef SETTINGS_H#define SETTINGS_H#include <vector>#include "hash_map.h"    class Settings{public:	void						Load( const string &file );	string						GetString( const string &section, const string &key, const string& def = "" );	vector<string>				GetStringVector( const string &section, const string &key );	int							GetInt( const string &section, const string &key, int def = 0 );		const vector<string>&		GetSections( void ) const { return( Sections ); }private:	hash_map<string, string>	Cfg;	vector<string>				Sections;		string						GetHashKey( const string& section, const string& key ) const;};#endif /* SETTINGS_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -