txml_ini.hpp

来自「j2me is based on j2mepolish, client & se」· HPP 代码 · 共 51 行

HPP
51
字号

//         Copyright E骾n O'Callaghan 2008 - 2008.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#ifndef AUX_TXML_INI_HPP_INCLUDED
#define AUX_TXML_INI_HPP_INCLUDED

#include <map>
#include <string>
#include <boost/smart_ptr.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>

namespace aux 
{ 

namespace xml
{
class node;
} 

class ini_impl;

class txml_ini
{
public:	
	txml_ini();
	txml_ini(boost::filesystem::wpath filename);

	~txml_ini();

	void init(boost::filesystem::wpath filename);
	
	bool load_data();
	bool save_data();
	
//	bool save(boost::filesystem::path location, std::string data);
	bool save(boost::filesystem::path location, xml::node* data);
	
	xml::node* load(boost::filesystem::path location);
		
private:	
	boost::scoped_ptr<ini_impl> pimpl;
};

} // namespace aux

#endif // AUX_TXML_INI_HPP_INCLUDED

⌨️ 快捷键说明

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