keepblanks.h
来自「This library provides a C++ interface to」· C头文件 代码 · 共 42 行
H
42 行
/* 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_H#include <libxml++/api_export.h>namespace 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 LIBXMLPP_API 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 + -
显示快捷键?