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"
11 Annotation::Annotation(XMLParser
* a_parser
, TTCN3Module
* a_module
, ConstructType a_construct
)
12 : RootType(a_parser
, a_module
, a_construct
) {
15 void Annotation::loadWithValues() {
16 switch (parser
->getActualTagName()) {
18 addComment(Mstring("LABEL:"));
21 addComment(Mstring("DEFINITION:"));
28 void Annotation::printToFile(FILE * file
) {
30 fprintf(file
, "\n\n");
33 void Annotation::dump(unsigned int depth
) const {
34 fprintf(stderr
, "%*s Annotation at %p\n", depth
* 2, "", (const void*) this);