r237: *** 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.39 2000/12/04 03:09:00 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 #define HAVE_ANSI_CPP 1
45 #ifdef HAVE_ANSI_CPP
46 #include <complex>
47 #include <cmath>
48 #include <cstdio>
49 #include <cctype>
50 #include <cstring>
51 #include <cstddef>
52 #include <cstdarg>
53 #include <cstdlib>
54 using namespace std;
55
56 #ifndef WIN32
57 #include <sstream>
58 #endif
59
60 #include <fstream>
61 #include <iostream>
62 #include <string>
63 #include <iterator>
64 #include <algorithm>
65 #include <exception>
66 #include <stdexcept>
67 #include <memory>
68
69 #else
70
71 #ifdef HAVE_CTYPE_H
72 #include <ctype.h>
73 #endif
74 #ifdef HAVE_MATH_H
75 #include <math.h>
76 #endif
77 #ifdef HAVE_STDIO_H
78 #include <stdio.h>
79 #endif
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
93 #endif
94
95
96 #ifdef HAVE_DMALLOC
97 #include <dmalloc.h>
98 #endif
99 #ifdef HAVE_UNISTD_H
100 #include <unistd.h>
101 #endif
102 #ifdef HAVE_PNG
103   #include "png.h"
104 #endif
105 #ifdef HAVE_G2_H
106 extern "C" { 
107 #include "g2.h" 
108 }
109 #ifdef HAVE_X11
110 extern "C" {
111 #include "g2_X11.h"
112 }
113 #endif
114 #endif
115
116
117 #ifdef  HAVE_SYS_TYPES_H
118 #include <sys/types.h>
119 #endif
120 #ifdef HAVE_SYS_STAT_H
121 #include <sys/stat.h>
122 #endif
123 #ifdef HAVE_SYS_FCNTL_H
124 #include <sys/fcntl.h>
125 #endif
126 #ifdef HAVE_FCNTL_H
127 #include <fcntl.h>
128 #endif
129 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
130 #include <getopt.h>
131 #endif
132 #ifdef HAVE_SETJMP_H
133 #include <setjmp.h>
134 #endif
135 #ifdef HAVE_SYS_PARAM_H
136 #include <sys/param.h>          /* for htonl on FreeBSD */
137 #endif
138 #ifdef HAVE_NETINET_IN_H
139 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
140 #endif
141 #ifdef HAVE_INTTYPES_H
142 #include <inttypes.h>           /* for htonl on Solaris */
143 #endif
144 #ifdef HAVE_STDINT_H
145 #include <stdint.h>             /* Standard ints on Linux */
146 #endif
147 #ifdef HAVE_ASSERT_H
148 #include <assert.h>
149 #endif
150
151
152 #ifdef HAVE_FFTW
153 #include <rfftw.h>
154 #include <fftw.h>
155 #endif
156
157 #ifdef HAVE_MPI
158 #include "mpi++.h"
159 #include "mpiworld.h"
160 #endif
161
162 #include "ctsupport.h"
163 #include "fnetorderstream.h"
164
165 #ifdef HAVE_SGP
166   #include "ezplot.h"
167   #include "sgp.h"
168 #endif
169
170 #include "array2d.h"
171 #include "array2dfile.h"
172 #include "fnetorderstream.h"
173 #include "imagefile.h"
174 #include "phantom.h"
175 #include "scanner.h"
176 #include "backprojectors.h"
177 #include "filter.h"
178 #include "procsignal.h"
179 #include "projections.h"
180 #include "reconstruct.h"
181 #include "trace.h"
182
183
184 #endif
185