MLBookProc 1.0
 
Loading...
Searching...
No Matches
XMLTag.h
1/*
2 * Copyright (C) 2024-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
17#ifndef XMLTAG_H
18#define XMLTAG_H
19
20#include <string>
21#include <vector>
22
31class XMLTag
32{
33public:
38
42 XMLTag(const XMLTag &other);
43
47 XMLTag &
48 operator=(const XMLTag &other);
49
53 XMLTag(XMLTag &&other);
54
58 XMLTag &
59 operator=(XMLTag &&other);
60
68 bool
69 hasContent() const;
70
76 std::string element;
77
81 std::string tag_id;
82
92 std::string::size_type content_start;
93
101 std::string::size_type content_end;
102
108 std::vector<XMLTag> tag_list;
109};
110
111#endif // XMLTAG_H
XMLTag()
XMLTag constructor.
XMLTag & operator=(const XMLTag &other)
operator =
std::string::size_type content_end
Index of last byte of tag content.
Definition XMLTag.h:101
XMLTag(const XMLTag &other)
XMLTag copy constructor.
std::vector< XMLTag > tag_list
List of XML tags, found in tag content (if any).
Definition XMLTag.h:108
std::string::size_type content_start
Index of first byte of tag content.
Definition XMLTag.h:92
XMLTag & operator=(XMLTag &&other)
operator =
std::string tag_id
Tag name.
Definition XMLTag.h:81
XMLTag(XMLTag &&other)
XMLTag move constructor.
std::string element
Tag start element content.
Definition XMLTag.h:76
bool hasContent() const
Checks if tag has content.