summaryrefslogtreecommitdiffstats
path: root/dcop/dcopidl2cpp/type.h
blob: 2a99c83a951fb5ab33a60f1898bda4534bd14533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef TYPE_H
#define TYPE_H

#include <tqtextstream.h>
#include <tqdom.h>

static TQString writeType( TQTextStream& str, const TQDomElement& r )
{
  Q_ASSERT( r.tagName() == "TYPE" );
  if ( r.hasAttribute( "qleft" ) )
    str << r.attribute("qleft") << " ";
  TQString t = r.firstChild().toText().data();
  t = t.replace( ">>", "> >" );
  str << t;
  if ( r.hasAttribute( "qright" ) )
    str << r.attribute("qright") << " ";
  else
    str << " ";
  return t;
}

#endif