File: dtcTest2.cxx

package info (click to toggle)
dart 0.20061109-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 5,668 kB
  • ctags: 247
  • sloc: tcl: 5,652; perl: 256; python: 141; cpp: 79; makefile: 68; sh: 36
file content (30 lines) | stat: -rw-r--r-- 782 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <dtcFoo.h>
#include <stdio.h>

#ifdef DT_EXISTS_IOSTREAM
#  include <iostream>
using std::cerr;
using std::endl;
#else
# ifdef DT_EXISTS_IOSTREAM_H
# include <iostream.h>
# else
error Can not find a copy of iostream
# endif
#endif


int main( const int argc, const char** argv ) {
  dtcFoo foo;
  printf ( "<DartMeasurement name=\"Number\" type=\"numeric/integer\">1234</DartMeasurement>\n" );
  printf ( "<DartMeasurement name=\"String\" type=\"text/string\">This is a string</DartMeasurement>\n" );
  printf ( "<DartMeasurement name=\"URL\" type=\"link/url\">http://public.kitware.com/Dart</DartMeasurement>\n" );
  unsigned char t = 19;
  for ( t = 0; t < 255; t++ )
    {
    cerr << t << endl;
    }
  cerr << "Was this a & & &  bad char!!!" << endl;
  
  return 1;
}