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

📄 ini_adapter.hpp

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

#ifndef GLOBAL_INI_ADAPTER
#define GLOBAL_INI_ADAPTER

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

#include "ini.hpp"

namespace hal 
{

class ini_adapter
{
public:	
	ini_adapter(boost::filesystem::path loc, ini_file& ini = hal::ini()) :
		ini_(ini),
		location_(loc)
	{}

	void load_stream_data(std::ostream& data);
	void save_stream_data(std::istream& data);
	
	void load_stream_data(std::wostream& data);
	void save_stream_data(std::wistream& data);
	
private:
	ini_file& ini_;
	boost::filesystem::path location_;
};

} // namespace hal

#endif // GLOBAL_INI_ADAPTER

⌨️ 快捷键说明

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