📄 txml_ini_adapter.hpp
字号:
// 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_ADAPTER_HPP
#define AUX_TXML_INI_ADAPTER_HPP
#include <iostream>
#include <boost/filesystem/path.hpp>
#include "txml_ini.hpp"
namespace aux
{
class txml_ini_adapter
{
public:
txml_ini_adapter(boost::filesystem::path loc, txml_ini& ini) :
ini_(ini)
{
locations_.push_back(loc);
}
txml_ini_adapter(std::vector<boost::filesystem::path> locs, txml_ini& ini) :
ini_(ini),
locations_(locs)
{}
bool load_stream_data(std::ostream& data);
void save_stream_data(std::istream& data);
bool load_stream_data(std::wostream& data);
void save_stream_data(std::wistream& data);
private:
xml::node* get_load_data_node();
txml_ini& ini_;
std::vector<boost::filesystem::path> locations_;
};
} // namespace aux
#endif // AUX_TXML_INI_ADAPTER_HPP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -