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"
11 extern bool c_flag_used
;
13 Annotation::Annotation(XMLParser
* a_parser
, TTCN3Module
* a_module
, ConstructType a_construct
)
14 : RootType(a_parser
, a_module
, a_construct
)
17 void Annotation::loadWithValues()
19 switch (parser
->getActualTagName())
21 case XMLParser::n_label
:
22 addComment(Mstring("LABEL:"));
24 case XMLParser::n_definition
:
25 addComment(Mstring("DEFINITION:"));
32 void Annotation::printToFile(FILE * file
)
35 fprintf(file
, "\n\n");
38 void Annotation::dump(unsigned int depth
) const
40 fprintf(stderr
, "%*s Annotation at %p\n", depth
* 2, "", (const void*)this);