aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/baremetal/debugservers/uvsc/xmlpropertygroup.cpp
blob: 39bed14701e0abe97088f9ac2eb9c466b4440058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 2020 Denis Shienkov <denis.shienkov@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#include "xmlnodevisitor.h"
#include "xmlpropertygroup.h"

namespace BareMetal {
namespace Gen {
namespace Xml {

PropertyGroup::PropertyGroup(QByteArray name)
{
    setName(std::move(name));
}

PropertyGroup *PropertyGroup::appendPropertyGroup(QByteArray name)
{
    return appendChild<PropertyGroup>(std::move(name));
}

void PropertyGroup::accept(INodeVisitor *visitor) const
{
    visitor->visitPropertyGroupStart(this);

    for (const auto &child : children())
        child->accept(visitor);

    visitor->visitPropertyGroupEnd(this);
}

} // namespace Xml
} // namespace Gen
} // namespace BareMetal