aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib/qmt/model/minheritance.h
blob: bd749b1b3eb4bef308cef2cb2e75b1dc56ea4a54 (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
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "mrelation.h"
#include "qmt/infrastructure/handle.h"

namespace qmt {

class QMT_EXPORT MInheritance : public MRelation
{
public:
    MInheritance();
    MInheritance(const MInheritance &rhs);
    ~MInheritance() override;

    MInheritance operator=(const MInheritance &rhs);

    Uid derived() const;
    void setDerived(const Uid &derived);
    Uid base() const;
    void setBase(const Uid &base);

    void accept(MVisitor *visitor) override;
    void accept(MConstVisitor *visitor) const override;
};

} // namespace qmt