~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/CIAO/CCF/Example/CodeGenerationKit/Indentation/XML/indent_xml.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// file      : CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
2
 
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
3
 
// cvs-id    : indent_xml.cpp,v 1.3 2003/12/22 22:26:40 boris Exp
4
 
 
5
 
#include "CCF/CodeGenerationKit/IndentationXML.hpp"
6
 
#include "CCF/CodeGenerationKit/IndentationImplanter.hpp"
7
 
 
8
 
#include <iostream>
9
 
 
10
 
using std::cout;
11
 
using std::endl;
12
 
 
13
 
int
14
 
main ()
15
 
{
16
 
  Indentation::Implanter<Indentation::XML> guard (cout);
17
 
 
18
 
  cout << "<?xml version=\"1.0\"?>" << endl;
19
 
  cout << "<!DOCTYPE corbacomponent SYSYEM \"corbacomponent.dtd\">" << endl << endl;
20
 
  
21
 
  cout << "<atag>whatever</atag>" << endl;
22
 
 
23
 
  cout << "<open>" << endl;
24
 
  cout << "<openother>" << endl;
25
 
  cout << "<openother \nlabel=\"<<<<<<<<<>><>\">" << endl;
26
 
  cout << "text" << endl;
27
 
  cout << "<taginitself/>" << endl;
28
 
  cout << "</openother>" << endl;
29
 
  cout << "</openother>" << endl;
30
 
  cout << "</open>" << endl;
31
 
 
32
 
}