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