Sync with 5.4.0
[deliverable/titan.core.git] / xsdconvert / Annotation.cc
CommitLineData
970ed795 1///////////////////////////////////////////////////////////////////////////////
3abe9331 2// Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
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
970ed795 11Annotation::Annotation(XMLParser * a_parser, TTCN3Module * a_module, ConstructType a_construct)
3abe9331 12: RootType(a_parser, a_module, a_construct) {
13}
970ed795 14
3abe9331 15void 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;
970ed795
EL
25 }
26}
27
3abe9331 28void Annotation::printToFile(FILE * file) {
970ed795
EL
29 printComment(file);
30 fprintf(file, "\n\n");
31}
32
3abe9331 33void Annotation::dump(unsigned int depth) const {
34 fprintf(stderr, "%*s Annotation at %p\n", depth * 2, "", (const void*) this);
970ed795 35}
This page took 0.0250050000000001 seconds and 5 git commands to generate.