XMLParserCPP 1.1
Loading...
Searching...
No Matches
XMLElement.h
1/*
2 * Copyright (C) 2025 Yury Bobylev <bobilev_yury@mail.ru>
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation, version 3.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program. If not, see <https://www.gnu.org/licenses/>.
15 */
16#ifndef XMLELEMENT_H
17#define XMLELEMENT_H
18
19#include <XMLElementAttribute.h>
20#include <string>
21#include <vector>
22
29{
30public:
35
40 XMLElement(const XMLElement &other);
41
47
54 operator=(const XMLElement &other);
55
63
67 std::string element_name;
68
72 std::vector<XMLElementAttribute> element_attributes;
73
77 std::vector<XMLElement> elements;
78
82 std::string content;
83
105
110
114 enum Empty
115 {
122 };
123
128};
129
130#endif // XMLELEMENT_H
Empty empty
Element emptiness indicator.
Definition XMLElement.h:127
Type element_type
XMLElement type.
Definition XMLElement.h:109
XMLElement & operator=(XMLElement &&other)
operator =
std::vector< XMLElementAttribute > element_attributes
Vector of XML element attributes.
Definition XMLElement.h:72
XMLElement & operator=(const XMLElement &other)
operator =
Empty
Enumerator for empty elements.
Definition XMLElement.h:115
@ NotEmpty
Definition XMLElement.h:121
@ HTML
Definition XMLElement.h:119
@ XML
Definition XMLElement.h:117
std::string element_name
XML element name.
Definition XMLElement.h:67
XMLElement(XMLElement &&other)
XMLElement move constructor.
std::vector< XMLElement > elements
Vector of XML element subelements.
Definition XMLElement.h:77
XMLElement(const XMLElement &other)
XMLElement copy constructor.
std::string content
XML element content if any.
Definition XMLElement.h:82
Type
XML elements types enumerator.
Definition XMLElement.h:88
@ SpecialElement
Definition XMLElement.h:98
@ ProgramControlElement
Definition XMLElement.h:92
@ Comment
Definition XMLElement.h:96
@ CharData
Definition XMLElement.h:94
@ OrdinaryElement
Definition XMLElement.h:100
@ ElementContent
Definition XMLElement.h:103
XMLElement()
XMLElement constructor.