r219: *** empty log message ***
[ctsim.git] / include / ct.h
1 /*****************************************************************************
2 ** FILE IDENTIFICATION
3 **
4 **   Name:          ct.h
5 **   Purpose:       Master header file for CTSim
6 **   Programmer:    Kevin Rosenberg
7 **   Date Started:  Aug 1984
8 **
9 **  This is part of the CTSim program
10 **  Copyright (C) 1983-2000 Kevin Rosenberg
11 **
12 **  $Id: ct.h,v 1.34 2000/11/28 14:54:07 kevin Exp $
13 **
14 **  This program is free software; you can redistribute it and/or modify
15 **  it under the terms of the GNU General Public License (version 2) as
16 **  published by the Free Software Foundation.
17 **
18 **  This program is distributed in the hope that it will be useful,
19 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
20 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 **  GNU General Public License for more details.
22 **
23 **  You should have received a copy of the GNU General Public License
24 **  along with this program; if not, write to the Free Software
25 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 ******************************************************************************/
27
28 #ifndef CT_H
29 #define CT_H
30
31 #ifdef _WIN32
32   extern "C" {int strcasecmp(const char*, const char*);}
33   typedef long off_t;
34   #define HAVE_STRING_H 1
35   #include <fcntl.h>
36   #define strcasecmp stricmp
37   #define strncasecmp strnicmp
38 #endif
39
40 #ifdef HAVE_CONFIG_H
41   #include <config.h>
42 #endif
43
44 #include <cmath>
45 #include <complex>
46 #include <cstdio>
47 #include <cctype>
48 #include <fstream>
49 #include <iostream>
50 #include <sstream>
51 #include <string>
52 #include <iterator>
53 #include <algorithm>
54 #include <exception>
55 #include <stdexcept>
56 #include <memory>
57
58 #define __MATH_H__ 1
59
60 #ifdef HAVE_DMALLOC
61 #include <dmalloc.h>
62 #endif
63 #ifdef HAVE_UNISTD_H
64 #include <unistd.h>
65 #endif
66 #ifdef HAVE_PNG
67   #include "png.h"
68 #endif
69 #ifdef HAVE_G2_H
70 extern "C" { 
71 #include "g2.h" 
72 }
73 #ifdef HAVE_X11
74 extern "C" {
75 #include "g2_X11.h"
76 }
77 #endif
78 #endif
79
80 #ifdef HAVE_STRING_H
81 #include <string.h>
82 #endif
83 #ifdef HAVE_STDDEF_H
84 #include <stddef.h>
85 #endif
86 #ifdef HAVE_STDLIB_H
87 #include <stdlib.h>
88 #endif
89 #ifdef HAVE_STDARG_H
90 #include <stdarg.h>
91 #endif
92 #ifdef  HAVE_SYS_TYPES_H
93 #include <sys/types.h>
94 #endif
95 #ifdef HAVE_SYS_STAT_H
96 #include <sys/stat.h>
97 #endif
98 #ifdef HAVE_SYS_FCNTL_H
99 #include <sys/fcntl.h>
100 #endif
101 #ifdef HAVE_FCNTL_H
102 #include <fcntl.h>
103 #endif
104 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
105 #include <getopt.h>
106 #endif
107 #ifdef HAVE_SETJMP_H
108 #include <setjmp.h>
109 #endif
110 #ifdef HAVE_SYS_PARAM_H
111 #include <sys/param.h>          /* for htonl on FreeBSD */
112 #endif
113 #ifdef HAVE_NETINET_IN_H
114 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
115 #endif
116 #ifdef HAVE_INTTYPES_H
117 #include <inttypes.h>           /* for htonl on Solaris */
118 #endif
119 #ifdef HAVE_STDINT_H
120 #include <stdint.h>             /* Standard ints on Linux */
121 #endif
122 #ifdef HAVE_ASSERT_H
123 #include <assert.h>
124 #endif
125
126
127 #if 0
128 #ifdef HAVE_CTYPE_H
129 #include <ctype.h>
130 #endif
131 #ifdef HAVE_MATH_H
132 #include <math.h>
133 #endif
134 #ifdef HAVE_STDIO_H
135 #include <stdio.h>
136 #endif
137 #endif
138
139 #ifdef HAVE_FFTW
140 #include <rfftw.h>
141 #include <fftw.h>
142 #endif
143
144 using namespace std;
145
146 #ifdef HAVE_MPI
147 #include "mpi++.h"
148 #include "mpiworld.h"
149 #endif
150
151 #include "ctsupport.h"
152 #include "fnetorderstream.h"
153
154 #ifdef HAVE_SGP
155   #include "ezplot.h"
156   #include "sgp.h"
157 #endif
158
159 #include "array2d.h"
160 #include "array2dfile.h"
161 #include "fnetorderstream.h"
162 #include "imagefile.h"
163 #include "phantom.h"
164 #include "scanner.h"
165 #include "backprojectors.h"
166 #include "filter.h"
167 #include "procsignal.h"
168 #include "projections.h"
169 #include "reconstruct.h"
170 #include "trace.h"
171
172
173 #endif
174