1 | // Copyright (C) 2023 basysKom GmbH, opensource@basyskom.com |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #include "import.h" |
5 | #include "visitor.h" |
6 | |
7 | #include <QtCore/qdebug.h> |
8 | |
9 | Import::Import(const QString &nameSpace, const QString &location) |
10 | : m_location(location) |
11 | , m_nameSpace(nameSpace) |
12 | {} |
13 | |
14 | QString Import::nameSpace() const |
15 | { |
16 | return m_nameSpace; |
17 | } |
18 | |
19 | void Import::setNameSpace(const QString &nameSpace) |
20 | { |
21 | m_nameSpace = nameSpace; |
22 | } |
23 | |
24 | QString Import::location() const |
25 | { |
26 | return m_location; |
27 | } |
28 | |
29 | void Import::setLocation(const QString &location) |
30 | { |
31 | m_location = location; |
32 | } |
33 | |
34 | void Import::print() const |
35 | { |
36 | qDebug() << "Namespace:"<< m_nameSpace << "\tLocation:"<< m_location; |
37 | } |
38 | |
39 | void Import::accept(Visitor *visitor) |
40 | { |
41 | visitor->visit(import: this); |
42 | } |
43 |