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 | #include "Annotation.hh" |
16 | #include "XMLParser.hh" | |
17 | ||
970ed795 | 18 | Annotation::Annotation(XMLParser * a_parser, TTCN3Module * a_module, ConstructType a_construct) |
3abe9331 | 19 | : RootType(a_parser, a_module, a_construct) { |
20 | } | |
970ed795 | 21 | |
3abe9331 | 22 | void Annotation::loadWithValues() { |
23 | switch (parser->getActualTagName()) { | |
24 | case n_label: | |
25 | addComment(Mstring("LABEL:")); | |
26 | break; | |
27 | case n_definition: | |
28 | addComment(Mstring("DEFINITION:")); | |
29 | break; | |
30 | default: | |
31 | break; | |
970ed795 EL |
32 | } |
33 | } | |
34 | ||
3abe9331 | 35 | void Annotation::printToFile(FILE * file) { |
970ed795 EL |
36 | printComment(file); |
37 | fprintf(file, "\n\n"); | |
38 | } | |
39 | ||
3abe9331 | 40 | void Annotation::dump(unsigned int depth) const { |
41 | fprintf(stderr, "%*s Annotation at %p\n", depth * 2, "", (const void*) this); | |
970ed795 | 42 | } |