MLBookProc 1.3
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
34class __attribute__((deprecated)) XMLTag
35{
36public:
41
45 XMLTag(const XMLTag &other);
46
50 XMLTag &
51 operator=(const XMLTag &other);
52
56 XMLTag(XMLTag &&other);
57
61 XMLTag &
62 operator=(XMLTag &&other);
63
71 bool
72 hasContent() const;
73
79 std::string element;
80
84 std::string tag_id;
85
95 std::string::size_type content_start;
96
104 std::string::size_type content_end;
105
111 std::vector<XMLTag> tag_list;
112};
113
114#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:104
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:111
std::string::size_type content_start
Index of first byte of tag content.
Definition XMLTag.h:95
XMLTag & operator=(XMLTag &&other)
operator =
std::string tag_id
Tag name.
Definition XMLTag.h:84
XMLTag(XMLTag &&other)
XMLTag move constructor.
std::string element
Tag start element content.
Definition XMLTag.h:79
bool hasContent() const
Checks if tag has content.