Commit | Line | Data |
---|---|---|
d44e3c4f | 1 | /****************************************************************************** |
2 | * Copyright (c) 2000-2016 Ericsson Telecom AB | |
3 | * All rights reserved. This program and the accompanying materials | |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
7 | * | |
8 | * Contributors: | |
9 | * Balasko, Jeno | |
10 | * Godar, Marton | |
11 | * Raduly, Csaba | |
12 | * Szabo, Bence Janos | |
13 | * | |
14 | ******************************************************************************/ | |
970ed795 EL |
15 | #ifndef IMPORTSTATEMENT_HH_ |
16 | #define IMPORTSTATEMENT_HH_ | |
17 | ||
18 | #include "RootType.hh" | |
19 | ||
20 | /** | |
21 | * Type that contains information coming from XSD import and include tags | |
22 | * | |
23 | * Source in XSD: | |
24 | * | |
25 | * * <import namespace="..." schemaLocation="..."/> | |
26 | * * <include schemaLocation="..."/> | |
27 | * | |
28 | * Result in TTCN-3: | |
29 | * | |
30 | * * TTCN-3 import statement | |
31 | * * Real inclusion of the referenced datatypes | |
32 | * | |
33 | */ | |
3abe9331 | 34 | class ImportStatement : public RootType { |
35 | /// Originally, the "namespace" attribute of the <import> | |
36 | Mstring from_namespace; | |
37 | /// Originally, the "schemaLocation" attribute of the <import> | |
38 | Mstring from_schemaLocation; | |
39 | /// Result of the reference resolving function: | |
40 | /// The module we want to import from. Not owned. | |
41 | TTCN3Module *source_module; | |
970ed795 | 42 | |
3abe9331 | 43 | ImportStatement(const ImportStatement &); // not implemented |
44 | ImportStatement & operator=(const ImportStatement &); // not implemented | |
45 | // Default destructor is used | |
970ed795 | 46 | public: |
3abe9331 | 47 | ImportStatement(XMLParser * a_parser, TTCN3Module * a_module, ConstructType a_construct); |
970ed795 | 48 | |
3abe9331 | 49 | /** Virtual methods |
50 | * inherited from the abstract RootType | |
51 | */ | |
52 | void loadWithValues(); | |
53 | void referenceResolving(); | |
970ed795 | 54 | |
3abe9331 | 55 | void validityChecking() { |
56 | } | |
57 | void printToFile(FILE * file); | |
feade998 | 58 | |
59 | const TTCN3Module* getSourceModule() { return source_module; } | |
3abe9331 | 60 | |
61 | void dump(unsigned int depth) const; | |
970ed795 EL |
62 | }; |
63 | ||
64 | #endif /* IMPORTSTATEMENT_HH_ */ |