mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 05:10:07 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
40 lines
888 B
C++
40 lines
888 B
C++
#pragma once
|
|
#ifndef XML_XNODE_INCLUDE_H_
|
|
#define XML_XNODE_INCLUDE_H_
|
|
|
|
#include "Private/XPointer.h"
|
|
#include "Private/Node.h"
|
|
#include <string>
|
|
#include <list>
|
|
|
|
|
|
namespace XML
|
|
{
|
|
class XText;
|
|
class XElement;
|
|
class XComment;
|
|
class XContainer;
|
|
|
|
class XNode : public Private::XPointer<Private::Node>
|
|
{
|
|
public:
|
|
XNode();
|
|
XNode(const XText& text);
|
|
XNode(const XElement& element);
|
|
XNode(const XComment& comment);
|
|
XNode(const XContainer& container);
|
|
|
|
public:
|
|
const bool isElement() const;
|
|
const bool isText() const;
|
|
const bool isComment() const;
|
|
|
|
public:
|
|
const std::string ToString() const;
|
|
const std::wstring ToWString() const;
|
|
virtual void SaveToStringList(std::list<std::string>& strList)const;
|
|
virtual void SaveToWStringList(std::list<std::wstring>& strList)const;
|
|
};
|
|
} // namespace XML
|
|
|
|
#endif // XML_XNODE_INCLUDE_H_
|