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

📄 ini.hpp

📁 j2me is based on j2mepolish, client & server for mobile application.
💻 HPP
字号:

#ifndef GLOBAL_INI_FILE
#define GLOBAL_INI_FILE

#include <boost/smart_ptr.hpp>
#include <boost/filesystem/path.hpp>

namespace tinyxml
{
class node;
}

namespace hal 
{

class ini_impl;

class ini_file
{
public:	
	void load_data();
	void save_data();
	
	bool save(boost::filesystem::path location, std::string data);
	bool save(boost::filesystem::path location, tinyxml::node* data);
	
	tinyxml::node* load(boost::filesystem::path location);
	
	friend ini_file& ini();
	
private:
	ini_file(std::wstring filename);
	
	boost::scoped_ptr<ini_impl> pimpl;
};

ini_file& ini();

} // namespace hal

class ini_base
{
public:
	virtual void load_data() = 0;
	virtual void save_data() = 0;
};
#endif // GLOBAL_INI_FILE

⌨️ 快捷键说明

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