keepblanks.h
来自「c语言编写的xml解析器可以方便的遍历插入删除节点等操作的」· C头文件 代码 · 共 40 行
H
40 行
/* settings.h * libxml++ and this file are * copyright (C) 2003 by The libxml++ Development Team, and * are covered by the GNU Lesser General Public License, which should be * included with libxml++ as the file COPYING. */#ifndef __LIBXMLPP_KEEPBLANKS_H#define __LIBXMLPP_KEEPBLANKS_Hnamespace xmlpp{ /** * This class set KeepBlanksDefault and IndentTreeOutput of libxmlpp * and restore their initial value in its destructor. As a consequence * the wanted setting is kept during instance lifetime. */ class KeepBlanks { public:#if _MSC_VER == 1200 // detect MSVC 6.0 static const bool Default;#else static const bool Default = true;#endif public: KeepBlanks(bool value); ~KeepBlanks(); private: int oldKeepBlanksDefault_; int oldIndentTreeOutput_; };};#endif // __LIBXMLPP_KEEPBLANKS_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?