Sync with 5.4.3
[deliverable/titan.core.git] / xsdconvert / Annotation.cc
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 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 #include "Annotation.hh"
9 #include "XMLParser.hh"
10
11 Annotation::Annotation(XMLParser * a_parser, TTCN3Module * a_module, ConstructType a_construct)
12 : RootType(a_parser, a_module, a_construct) {
13 }
14
15 void Annotation::loadWithValues() {
16 switch (parser->getActualTagName()) {
17 case n_label:
18 addComment(Mstring("LABEL:"));
19 break;
20 case n_definition:
21 addComment(Mstring("DEFINITION:"));
22 break;
23 default:
24 break;
25 }
26 }
27
28 void Annotation::printToFile(FILE * file) {
29 printComment(file);
30 fprintf(file, "\n\n");
31 }
32
33 void Annotation::dump(unsigned int depth) const {
34 fprintf(stderr, "%*s Annotation at %p\n", depth * 2, "", (const void*) this);
35 }
This page took 0.031687 seconds and 5 git commands to generate.