Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Copyright (c) 2000-2014 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 | #ifndef ANNOTATION_HH_ | |
9 | #define ANNOTATION_HH_ | |
10 | ||
11 | #include "RootType.hh" | |
12 | ||
13 | /** | |
14 | * Type that contains information coming from XSD annotation and comments | |
15 | * | |
16 | * Source in XSD: | |
17 | * | |
18 | * * <annotation> element whose parent element is <schema> | |
19 | * * xml comments ( closed between <!-- ... --> signs) | |
20 | * | |
21 | * Result in TTCN-3: | |
22 | * | |
23 | * * TTCN-3 comment | |
24 | * | |
25 | */ | |
26 | class Annotation : public RootType | |
27 | { | |
28 | public: | |
29 | Annotation (XMLParser * a_parser, TTCN3Module * a_module, ConstructType a_construct); | |
30 | Annotation (const Annotation &); // not implemented | |
31 | Annotation & operator = (const Annotation &); // not implemented | |
32 | // Default destructor is used | |
33 | ||
34 | /** Virtual methods | |
35 | * inherited from the abstract RootType | |
36 | */ | |
37 | void loadWithValues (); | |
38 | void printToFile (FILE * file); | |
39 | ||
40 | void dump (unsigned int depth) const; | |
41 | }; | |
42 | ||
43 | #endif /* ANNOTATION_HH_ */ |