r221: *** 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.35 2000/11/28 15:37:52 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 #include <cstring>
58 #include <cstddef>
59 #include <cstdarg>
60 #include <cstdlib>
61
62 #define __MATH_H__ 1
63
64 #ifdef HAVE_DMALLOC
65 #include <dmalloc.h>
66 #endif
67 #ifdef HAVE_UNISTD_H
68 #include <unistd.h>
69 #endif
70 #ifdef HAVE_PNG
71   #include "png.h"
72 #endif
73 #ifdef HAVE_G2_H
74 extern "C" { 
75 #include "g2.h" 
76 }
77 #ifdef HAVE_X11
78 extern "C" {
79 #include "g2_X11.h"
80 }
81 #endif
82 #endif
83
84
85 #ifdef  HAVE_SYS_TYPES_H
86 #include <sys/types.h>
87 #endif
88 #ifdef HAVE_SYS_STAT_H
89 #include <sys/stat.h>
90 #endif
91 #ifdef HAVE_SYS_FCNTL_H
92 #include <sys/fcntl.h>
93 #endif
94 #ifdef HAVE_FCNTL_H
95 #include <fcntl.h>
96 #endif
97 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
98 #include <getopt.h>
99 #endif
100 #ifdef HAVE_SETJMP_H
101 #include <setjmp.h>
102 #endif
103 #ifdef HAVE_SYS_PARAM_H
104 #include <sys/param.h>          /* for htonl on FreeBSD */
105 #endif
106 #ifdef HAVE_NETINET_IN_H
107 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
108 #endif
109 #ifdef HAVE_INTTYPES_H
110 #include <inttypes.h>           /* for htonl on Solaris */
111 #endif
112 #ifdef HAVE_STDINT_H
113 #include <stdint.h>             /* Standard ints on Linux */
114 #endif
115 #ifdef HAVE_ASSERT_H
116 #include <assert.h>
117 #endif
118
119
120 #if 0
121 #ifdef HAVE_CTYPE_H
122 #include <ctype.h>
123 #endif
124 #ifdef HAVE_MATH_H
125 #include <math.h>
126 #endif
127 #ifdef HAVE_STDIO_H
128 #include <stdio.h>
129 #endif
130 #ifdef HAVE_STRING_H
131 #include <string.h>
132 #endif
133 #ifdef HAVE_STDDEF_H
134 #include <stddef.h>
135 #endif
136 #ifdef HAVE_STDLIB_H
137 #include <stdlib.h>
138 #endif
139 #ifdef HAVE_STDARG_H
140 #include <stdarg.h>
141 #endif
142
143 #endif
144
145 #ifdef HAVE_FFTW
146 #include <rfftw.h>
147 #include <fftw.h>
148 #endif
149
150 using namespace std;
151
152 #ifdef HAVE_MPI
153 #include "mpi++.h"
154 #include "mpiworld.h"
155 #endif
156
157 #include "ctsupport.h"
158 #include "fnetorderstream.h"
159
160 #ifdef HAVE_SGP
161   #include "ezplot.h"
162   #include "sgp.h"
163 #endif
164
165 #include "array2d.h"
166 #include "array2dfile.h"
167 #include "fnetorderstream.h"
168 #include "imagefile.h"
169 #include "phantom.h"
170 #include "scanner.h"
171 #include "backprojectors.h"
172 #include "filter.h"
173 #include "procsignal.h"
174 #include "projections.h"
175 #include "reconstruct.h"
176 #include "trace.h"
177
178
179 #endif
180