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
14 ******************************************************************************/
15 #ifndef IMPORTSTATEMENT_HH_
16 #define IMPORTSTATEMENT_HH_
18 #include "RootType.hh"
21 * Type that contains information coming from XSD import and include tags
25 * * <import namespace="..." schemaLocation="..."/>
26 * * <include schemaLocation="..."/>
30 * * TTCN-3 import statement
31 * * Real inclusion of the referenced datatypes
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;
43 ImportStatement(const ImportStatement &); // not implemented
44 ImportStatement & operator=(const ImportStatement &); // not implemented
45 // Default destructor is used
47 ImportStatement(XMLParser * a_parser, TTCN3Module * a_module, ConstructType a_construct);
50 * inherited from the abstract RootType
52 void loadWithValues();
53 void referenceResolving();
55 void validityChecking() {
57 void printToFile(FILE * file);
59 const TTCN3Module* getSourceModule() { return source_module; }
61 void dump(unsigned int depth) const;
64 #endif /* IMPORTSTATEMENT_HH_ */