aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib/qmt/stereotype/shape.h
blob: f350a677a3d6572e052d99e47113f6daf957c0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

namespace qmt {

class ShapeVisitor;
class ShapeConstVisitor;

class IShape
{
public:
    virtual ~IShape() { }

    virtual IShape *clone() const = 0;
    virtual void accept(ShapeVisitor *visitor) = 0;
    virtual void accept(ShapeConstVisitor *visitor) const = 0;
};

} // namespace qmt