attribute.h

来自「c语言编写的xml解析器可以方便的遍历插入删除节点等操作的」· C头文件 代码 · 共 48 行

H
48
字号
/* attribute.h * libxml++ and this file are copyright (C) 2000 by Ari Johnson, and * are covered by the GNU Lesser General Public License, which should be * included with libxml++ as the file COPYING. */#ifndef __LIBXMLPP_ATTRIBUTE_H#define __LIBXMLPP_ATTRIBUTE_H#include <string>#include <libxml++/nodes/node.h>#ifndef DOXYGEN_SHOULD_SKIP_THISextern "C" {  struct _xmlAttr;};#endif //#ifndef DOXYGEN_SHOULD_SKIP_THISnamespace xmlpp{/** Represents XML Node attributes. * */class Attribute : public Node{public:  explicit Attribute(_xmlNode* node);  virtual ~Attribute();    std::string get_name() const;  std::string get_value() const;  void set_value(const std::string& value);  ///Access the underlying libxml implementation.  _xmlAttr* cobj();  ///Access the underlying libxml implementation.  const _xmlAttr* cobj() const;};} // namespace xmlpp#endif //__LIBXMLPP_ATTRIBUTE_H

⌨️ 快捷键说明

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