Merge pull request #61 from BenceJanosSzabo/master
[deliverable/titan.core.git] / xsdconvert / ImportStatement.hh
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 ******************************************************************************/
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 */
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;
42
43 ImportStatement(const ImportStatement &); // not implemented
44 ImportStatement & operator=(const ImportStatement &); // not implemented
45 // Default destructor is used
46 public:
47 ImportStatement(XMLParser * a_parser, TTCN3Module * a_module, ConstructType a_construct);
48
49 /** Virtual methods
50 * inherited from the abstract RootType
51 */
52 void loadWithValues();
53 void referenceResolving();
54
55 void validityChecking() {
56 }
57 void printToFile(FILE * file);
58
59 const TTCN3Module* getSourceModule() { return source_module; }
60
61 void dump(unsigned int depth) const;
62 };
63
64 #endif /* IMPORTSTATEMENT_HH_ */
This page took 0.035079 seconds and 5 git commands to generate.