ACF $AcfVersion:0$
CArchiveTag.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QByteArray>
7
8
9namespace iser
10{
11
12
13class IArchive;
14
15
22{
23public:
54
62 CArchiveTag(const QByteArray& id,
63 const QByteArray& comment,
64 TagType tagType = TT_UNKNOWN,
65 const CArchiveTag* parentPtr = NULL,
66 bool isTagSkippingUsed = false);
67
71 const QByteArray& GetId() const;
72
76 quint32 GetBinaryId() const;
77
82 const QByteArray& GetComment() const;
83
88
92 const CArchiveTag* GetParentTag() const;
93
97 bool IsTagSkippingUsed() const;
98
99private:
100 QByteArray m_id;
101 quint32 m_binaryId;
102
103 QByteArray m_comment;
104
105 TagType m_tagType;
106 const CArchiveTag* m_parentPtr;
107
108 bool m_isTagSkippingUsed;
109};
110
111
112// inline methods
113
115{
116 return m_isTagSkippingUsed;
117}
118
119
120} // namespace iser
121
122
123
124
Process tag used to group data in archive stream.
Definition CArchiveTag.h:22
TagType GetTagType() const
Get type of this tag.
const QByteArray & GetId() const
Get ID of this tag.
TagType
Describe type of tag.
Definition CArchiveTag.h:28
@ TT_GROUP
Normal tag used for grouping of tags or processed elements.
Definition CArchiveTag.h:37
@ TT_LEAF
Leaf tag, it can contain only one primitive element.
Definition CArchiveTag.h:48
@ TT_WEAK
Weak group tag, if possible it will be not outputted.
Definition CArchiveTag.h:52
@ TT_UNKNOWN
Unknown type of tag.
Definition CArchiveTag.h:32
@ TT_MULTIPLE
Multiple tag containing variable number of child tags.
Definition CArchiveTag.h:42
CArchiveTag(const QByteArray &id, const QByteArray &comment, TagType tagType=TT_UNKNOWN, const CArchiveTag *parentPtr=NULL, bool isTagSkippingUsed=false)
Constructor with parameter initialization.
quint32 GetBinaryId() const
Get automatic generated binary ID.
const QByteArray & GetComment() const
Get comment of this tag.
bool IsTagSkippingUsed() const
Check if it is needed to support tag skipping for this tag.
const CArchiveTag * GetParentTag() const
Get tag beeing parent of this.
#define NULL
Definition istd.h:74
Contains general persistence mechanism with basic archives implementations.